PHP 클래스 Phue\Command\SetGroupAttributes

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

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes array Group attributes
$groupId string Group Id

공개 메소드들

메소드 설명
__construct ( mixed $group ) Constructs a command
lights ( array $lights ) : self Set lights
name ( string $name ) : self Set name
send ( Client $client ) Send command

메소드 상세

__construct() 공개 메소드

Constructs a command
public __construct ( mixed $group )
$group mixed Group Id or Group 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 )
$client Phue\Client Phue Client

프로퍼티 상세

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

Group attributes
protected array $attributes
리턴 array

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

Group Id
protected string $groupId
리턴 string