PHP Class Phue\Sensor

Show file Open project: sqmk/phue

Protected Properties

Property Type Description
$attributes stdClass Sensor attributes
$client Client Phue client
$id integer Id

Public Methods

Method Description
__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

Method Details

__construct() public method

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() public method

__toString
public __toString ( ) : string
return string Sensor Id

getConfig() public method

Get config
public getConfig ( ) : stdClass
return stdClass Config

getId() public method

Get sensor Id
public getId ( ) : integer
return integer Sensor id

getManufacturerName() public method

Get manufacturer name
public getManufacturerName ( ) : string
return string Manufacturer name

getModel() public method

Get model
public getModel ( ) : AbstractSensorModel
return AbstractSensorModel Sensor model

getModelId() public method

Get model id
public getModelId ( ) : string
return string Model id

getName() public method

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

getSoftwareVersion() public method

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

getState() public method

Get state
public getState ( ) : stdClass
return stdClass State

getType() public method

Get type
public getType ( ) : string
return string Type of sensor

getUniqueId() public method

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

Property Details

$attributes protected property

Sensor attributes
protected stdClass $attributes
return stdClass

$client protected property

Phue client
protected Client,phue $client
return Client

$id protected property

Id
protected int $id
return integer