PHP 클래스 Phue\Client

파일 보기 프로젝트 열기: sqmk/phue 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$host string Host address
$transport Phue\Transport\TransportInterface Transport
$username string Username

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

getBridge() 공개 메소드

Get bridge
public getBridge ( ) : Bridge
리턴 Bridge Bridge object

getGroups() 공개 메소드

Get groups
public getGroups ( ) : Group[]
리턴 Group[] List of Group objects

getHost() 공개 메소드

Get host
public getHost ( ) : string
리턴 string Host address

getLights() 공개 메소드

Get lights
public getLights ( ) : Light[]
리턴 Light[] List of Light objects

getRules() 공개 메소드

Get rules
public getRules ( ) : Rule[]
리턴 Rule[] List of Rule objects

getScenes() 공개 메소드

Get scenes
public getScenes ( ) : Scene[]
리턴 Scene[] List of Scene objects

getSchedules() 공개 메소드

Get schedules
public getSchedules ( ) : Schedule[]
리턴 Schedule[] List of Schedule objects

getSensors() 공개 메소드

Get sensors
public getSensors ( ) : Sensor[]
리턴 Sensor[] List of Sensor objects

getTimezones() 공개 메소드

Get timezones
public getTimezones ( ) : array
리턴 array List of timezones

getTransport() 공개 메소드

Get transport
public getTransport ( ) : Phue\Transport\TransportInterface
리턴 Phue\Transport\TransportInterface Transport

getUsername() 공개 메소드

Get username
public getUsername ( ) : string
리턴 string Username

getUsers() 공개 메소드

Get users
public getUsers ( ) : User[]
리턴 User[] List of User objects

sendCommand() 공개 메소드

Send command to server
public sendCommand ( Phue\Command\CommandInterface $command ) : mixed
$command Phue\Command\CommandInterface Phue command
리턴 mixed Command result

setHost() 공개 메소드

Set host
public setHost ( string $host ) : self
$host string Host
리턴 self This object

setTransport() 공개 메소드

Set transport
public setTransport ( Phue\Transport\TransportInterface $transport ) : self
$transport Phue\Transport\TransportInterface Transport
리턴 self This object

setUsername() 공개 메소드

Set username
public setUsername ( string $username ) : self
$username string Username
리턴 self This object

프로퍼티 상세

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

Host address
protected string $host
리턴 string

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

Transport
protected TransportInterface,Phue\Transport $transport
리턴 Phue\Transport\TransportInterface

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

Username
protected string $username
리턴 string