PHP Class Phue\Command\CreateUser

Inheritance: implements Phue\Command\CommandInterface
显示文件 Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$deviceType string Device type

Public Methods

Method Description
__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

Protected Methods

Method Description
buildRequestData ( Client $client ) : stdClass Build request data

Method Details

__construct() public method

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

buildRequestData() protected method

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

send() public method

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

setDeviceType() public method

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

Property Details

$deviceType protected_oe property

Device type
protected string $deviceType
return string