PHP Class Phue\Client

Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$host string Host address
$transport Phue\Transport\TransportInterface Transport
$username string Username

Méthodes publiques

Méthode Description
__construct ( string $host, string $username = null ) Construct a Phue Client
getBridge ( ) : Bridge Get bridge
getGroups ( ) : Group[] Get groups
getHost ( ) : string Get host
getLights ( ) : Light[] Get lights
getRules ( ) : Rule[] Get rules
getScenes ( ) : Scene[] Get scenes
getSchedules ( ) : Schedule[] Get schedules
getSensors ( ) : Sensor[] Get sensors
getTimezones ( ) : array Get timezones
getTransport ( ) : Phue\Transport\TransportInterface Get transport
getUsername ( ) : string Get username
getUsers ( ) : User[] Get users
sendCommand ( Phue\Command\CommandInterface $command ) : mixed Send command to server
setHost ( string $host ) : self Set host
setTransport ( Phue\Transport\TransportInterface $transport ) : self Set transport
setUsername ( string $username ) : self Set username

Method Details

__construct() public méthode

Construct a Phue Client
public __construct ( string $host, string $username = null )
$host string Host address
$username string Username

getBridge() public méthode

Get bridge
public getBridge ( ) : Bridge
Résultat Bridge Bridge object

getGroups() public méthode

Get groups
public getGroups ( ) : Group[]
Résultat Group[] List of Group objects

getHost() public méthode

Get host
public getHost ( ) : string
Résultat string Host address

getLights() public méthode

Get lights
public getLights ( ) : Light[]
Résultat Light[] List of Light objects

getRules() public méthode

Get rules
public getRules ( ) : Rule[]
Résultat Rule[] List of Rule objects

getScenes() public méthode

Get scenes
public getScenes ( ) : Scene[]
Résultat Scene[] List of Scene objects

getSchedules() public méthode

Get schedules
public getSchedules ( ) : Schedule[]
Résultat Schedule[] List of Schedule objects

getSensors() public méthode

Get sensors
public getSensors ( ) : Sensor[]
Résultat Sensor[] List of Sensor objects

getTimezones() public méthode

Get timezones
public getTimezones ( ) : array
Résultat array List of timezones

getTransport() public méthode

Get transport
public getTransport ( ) : Phue\Transport\TransportInterface
Résultat Phue\Transport\TransportInterface Transport

getUsername() public méthode

Get username
public getUsername ( ) : string
Résultat string Username

getUsers() public méthode

Get users
public getUsers ( ) : User[]
Résultat User[] List of User objects

sendCommand() public méthode

Send command to server
public sendCommand ( Phue\Command\CommandInterface $command ) : mixed
$command Phue\Command\CommandInterface Phue command
Résultat mixed Command result

setHost() public méthode

Set host
public setHost ( string $host ) : self
$host string Host
Résultat self This object

setTransport() public méthode

Set transport
public setTransport ( Phue\Transport\TransportInterface $transport ) : self
$transport Phue\Transport\TransportInterface Transport
Résultat self This object

setUsername() public méthode

Set username
public setUsername ( string $username ) : self
$username string Username
Résultat self This object

Property Details

$host protected_oe property

Host address
protected string $host
Résultat string

$transport protected_oe property

Transport
protected TransportInterface,Phue\Transport $transport
Résultat Phue\Transport\TransportInterface

$username protected_oe property

Username
protected string $username
Résultat string