PHP 클래스 Phue\Command\CreateUser

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

보호된 프로퍼티들

프로퍼티 타입 설명
$deviceType string Device type

공개 메소드들

메소드 설명
__construct ( string $deviceType = self::DEFAULT_DEVICE_TYPE ) Instantiates a create user command
send ( Client $client ) : stdClass Send command
setDeviceType ( string $deviceType ) : self Set device type

보호된 메소드들

메소드 설명
buildRequestData ( Client $client ) : stdClass Build request data

메소드 상세

__construct() 공개 메소드

Instantiates a create user command
public __construct ( string $deviceType = self::DEFAULT_DEVICE_TYPE )
$deviceType string Device type

buildRequestData() 보호된 메소드

Build request data
protected buildRequestData ( Client $client ) : stdClass
$client Phue\Client Phue client
리턴 stdClass Request data object

send() 공개 메소드

Send command
public send ( Client $client ) : stdClass
$client Phue\Client Phue Client
리턴 stdClass Authentication response

setDeviceType() 공개 메소드

Set device type
public setDeviceType ( string $deviceType ) : self
$deviceType string Device type
리턴 self This object

프로퍼티 상세

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

Device type
protected string $deviceType
리턴 string