\MiotApi\Contract\SpecificationEventSpecification

简单的事件,用属性的变化来通知用户。复杂的事件,需要用Event来表达: 发生了什么事情? 哪些属性发生了变化?

Class EventSpecification

Summary

Methods
Properties
Constants
__construct()
init()
getUrn()
getType()
getDescription()
toContext()
toCollection()
toJson()
toArray()
__get()
__call()
getArguments()
No public properties found
No constants found
No protected methods found
$collection
$urn
$description
$arguments
N/A
No private methods found
No private properties found
N/A

Properties

$collection

$collection : 

Type

$urn

$urn : 

Type

$description

$description : 

描述: 纯文本字段.

Type

$arguments

$arguments : 

参数列表 可以是0到N个,每个参数都由属性组成.

Type

Methods

__construct()

__construct(  $urn) 

Specification constructor.

Parameters

$urn

Throws

\MiotApi\Exception\SpecificationErrorException

init()

init() 

Throws

\MiotApi\Exception\SpecificationErrorException

getUrn()

getUrn() 

getType()

getType() 

getDescription()

getDescription() 

toContext()

toContext() 

toCollection()

toCollection() 

toJson()

toJson() 

toArray()

toArray() 

__get()

__get(  $key) 

Parameters

$key

__call()

__call(string  $method, array  $parameters) : mixed

Proxy a method call onto the collection items.

Parameters

string $method
array $parameters

Returns

mixed

getArguments()

getArguments() : mixed

Returns

mixed