Properties

$collection

$collection : 

Type

$urn

$urn : 

Type

$description

$description : 

描述: 纯文本字段.

Type

$servicesNode

$servicesNode : 

Type

$specification

$specification : 

type对象

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

service()

service(  $siid) : mixed

根据服务的实例id获取服务实例.

Parameters

$siid

Returns

mixed

property()

property(  $siid,   $piid) : mixed

根据服务的实例id和属性的实例id获取属性实例.

Parameters

$siid
$piid

Returns

mixed

getSidPidByName()

getSidPidByName(  $name) : array

根据给定的属性名称得到 该属性所在的 sid和pid.

Parameters

$name

Returns

array

getServicesNode()

getServicesNode() : mixed

获取设备的服务实例列表.

Returns

mixed

getPropertiesNodes()

getPropertiesNodes() : mixed

获取所有属性列表.

Returns

mixed

getPropertiesNode()

getPropertiesNode(  $siid) : mixed

根据服务实例id 获取属性列表.

Parameters

$siid

Returns

mixed

getSpecification()

getSpecification() 

getSpecificationContext()

getSpecificationContext() 

initServices()

initServices() 

Throws

\MiotApi\Exception\SpecificationErrorException