PHP Class Phue\Sensor

Afficher le fichier Open project: sqmk/phue

Protected Properties

Свойство Type Description
$attributes stdClass Sensor attributes
$client Client Phue client
$id integer Id

Méthodes publiques

Méthode 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 méthode

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 méthode

__toString
public __toString ( ) : string
Résultat string Sensor Id

getConfig() public méthode

Get config
public getConfig ( ) : stdClass
Résultat stdClass Config

getId() public méthode

Get sensor Id
public getId ( ) : integer
Résultat integer Sensor id

getManufacturerName() public méthode

Get manufacturer name
public getManufacturerName ( ) : string
Résultat string Manufacturer name

getModel() public méthode

Get model
public getModel ( ) : AbstractSensorModel
Résultat AbstractSensorModel Sensor model

getModelId() public méthode

Get model id
public getModelId ( ) : string
Résultat string Model id

getName() public méthode

Get assigned name of sensor
public getName ( ) : string
Résultat string Name of sensor

getSoftwareVersion() public méthode

Get software version
public getSoftwareVersion ( ) : string | null
Résultat string | null Software version

getState() public méthode

Get state
public getState ( ) : stdClass
Résultat stdClass State

getType() public méthode

Get type
public getType ( ) : string
Résultat string Type of sensor

getUniqueId() public méthode

Get unique id
public getUniqueId ( ) : string | null
Résultat string | null Unique id

Property Details

$attributes protected_oe property

Sensor attributes
protected stdClass $attributes
Résultat stdClass

$client protected_oe property

Phue client
protected Client,phue $client
Résultat Client

$id protected_oe property

Id
protected int $id
Résultat integer