PHP 클래스 Phue\Sensor

파일 보기 프로젝트 열기: sqmk/phue

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes stdClass Sensor attributes
$client Client Phue client
$id integer Id

공개 메소드들

메소드 설명
__construct ( string $id, stdClass $attributes, Client $client ) Construct a Phue Sensor object
__toString ( ) : string __toString
getConfig ( ) : stdClass Get config
getId ( ) : integer Get sensor Id
getManufacturerName ( ) : string Get manufacturer name
getModel ( ) : AbstractSensorModel Get model
getModelId ( ) : string Get model id
getName ( ) : string Get assigned name of sensor
getSoftwareVersion ( ) : string | null Get software version
getState ( ) : stdClass Get state
getType ( ) : string Get type
getUniqueId ( ) : string | null Get unique id

메소드 상세

__construct() 공개 메소드

Construct a Phue Sensor object
public __construct ( string $id, stdClass $attributes, Client $client )
$id string Id
$attributes stdClass Sensor attributes
$client Client Phue client

__toString() 공개 메소드

__toString
public __toString ( ) : string
리턴 string Sensor Id

getConfig() 공개 메소드

Get config
public getConfig ( ) : stdClass
리턴 stdClass Config

getId() 공개 메소드

Get sensor Id
public getId ( ) : integer
리턴 integer Sensor id

getManufacturerName() 공개 메소드

Get manufacturer name
public getManufacturerName ( ) : string
리턴 string Manufacturer name

getModel() 공개 메소드

Get model
public getModel ( ) : AbstractSensorModel
리턴 AbstractSensorModel Sensor model

getModelId() 공개 메소드

Get model id
public getModelId ( ) : string
리턴 string Model id

getName() 공개 메소드

Get assigned name of sensor
public getName ( ) : string
리턴 string Name of sensor

getSoftwareVersion() 공개 메소드

Get software version
public getSoftwareVersion ( ) : string | null
리턴 string | null Software version

getState() 공개 메소드

Get state
public getState ( ) : stdClass
리턴 stdClass State

getType() 공개 메소드

Get type
public getType ( ) : string
리턴 string Type of sensor

getUniqueId() 공개 메소드

Get unique id
public getUniqueId ( ) : string | null
리턴 string | null Unique id

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

Sensor attributes
protected stdClass $attributes
리턴 stdClass

$client 보호되어 있는 프로퍼티

Phue client
protected Client,phue $client
리턴 Client

$id 보호되어 있는 프로퍼티

Id
protected int $id
리턴 integer