프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$host | string | Host address | |
$transport | Phue\Transport\TransportInterface | Transport | |
$username | string | Username |
메소드 | 설명 | |
---|---|---|
__construct ( string $host, string $username = null ) | Construct a Phue Client | |
getBridge ( ) : |
Get bridge | |
getGroups ( ) : |
Get groups | |
getHost ( ) : string | Get host | |
getLights ( ) : |
Get lights | |
getRules ( ) : |
Get rules | |
getScenes ( ) : |
Get scenes | |
getSchedules ( ) : |
Get schedules | |
getSensors ( ) : |
Get sensors | |
getTimezones ( ) : array | Get timezones | |
getTransport ( ) : Phue\Transport\TransportInterface | Get transport | |
getUsername ( ) : string | Get username | |
getUsers ( ) : |
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 |
public __construct ( string $host, string $username = null ) | ||
$host | string | Host address |
$username | string | Username |
public getSchedules ( ) : |
||
리턴 | List of Schedule objects |
public getTransport ( ) : Phue\Transport\TransportInterface | ||
리턴 | Phue\Transport\TransportInterface | Transport |
public sendCommand ( Phue\Command\CommandInterface $command ) : mixed | ||
$command | Phue\Command\CommandInterface | Phue command |
리턴 | mixed | Command result |
public setTransport ( Phue\Transport\TransportInterface $transport ) : self | ||
$transport | Phue\Transport\TransportInterface | Transport |
리턴 | self | This object |
public setUsername ( string $username ) : self | ||
$username | string | Username |
리턴 | self | This object |
protected TransportInterface,Phue\Transport $transport | ||
리턴 | Phue\Transport\TransportInterface |