PHP 클래스 Phue\Command\CreateScene

상속: implements Phue\Command\CommandInterface
파일 보기 프로젝트 열기: sqmk/phue 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$lights Lights
$name string Name
$transitionTime mixed Transition time

공개 메소드들

메소드 설명
__construct ( string $id, string $name, array $lights = [] ) Constructs a command
id ( string $id ) : self Set id
lights ( array $lights = [] ) : self Set lights
name ( string $name ) : self Set name
send ( Client $client ) : string Send command
transitionTime ( double $seconds ) : self Set transition time

메소드 상세

__construct() 공개 메소드

Constructs a command
public __construct ( string $id, string $name, array $lights = [] )
$id string Id
$name string Name
$lights array List of light Ids or Light objects

id() 공개 메소드

Set id
public id ( string $id ) : self
$id string Custom scene id
리턴 self This object

lights() 공개 메소드

Set lights
public lights ( array $lights = [] ) : self
$lights array List of light Ids or Light objects
리턴 self This object

name() 공개 메소드

Set name
public name ( string $name ) : self
$name string Name
리턴 self This object

send() 공개 메소드

Send command
public send ( Client $client ) : string
$client Phue\Client Phue Client
리턴 string Scene Id

transitionTime() 공개 메소드

Set transition time
public transitionTime ( double $seconds ) : self
$seconds double Time in seconds
리턴 self This object

프로퍼티 상세

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

Lights
protected $lights

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

Name
protected string $name
리턴 string

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

Transition time
protected mixed $transitionTime
리턴 mixed