PHP Class Phue\Command\CreateUser

Inheritance: implements Phue\Command\CommandInterface
Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$deviceType string Device type

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
buildRequestData ( Client $client ) : stdClass Build request data

Method Details

__construct() public méthode

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

buildRequestData() protected méthode

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

send() public méthode

Send command
public send ( Client $client ) : stdClass
$client Phue\Client Phue Client
Résultat stdClass Authentication response

setDeviceType() public méthode

Set device type
public setDeviceType ( string $deviceType ) : self
$deviceType string Device type
Résultat self This object

Property Details

$deviceType protected_oe property

Device type
protected string $deviceType
Résultat string