PHP Class Phue\Command\SetGroupState

Inheritance: extends SetLightState, implements Phue\Command\ActionableInterface
Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$groupId string Group Id

Méthodes publiques

Méthode Description
__construct ( mixed $group ) Constructs a command
getActionableParams ( Client $client ) : array Get actionable params
scene ( mixed $scene ) : self Set scene
send ( Client $client ) Send command

Method Details

__construct() public méthode

Constructs a command
public __construct ( mixed $group )
$group mixed Group Id or Group object

getActionableParams() public méthode

Get actionable params
public getActionableParams ( Client $client ) : array
$client Phue\Client Phue Client
Résultat array Key/value pairs of params

scene() public méthode

Set scene
public scene ( mixed $scene ) : self
$scene mixed Scene id or Scene object
Résultat self This object

send() public méthode

Send command
public send ( Client $client )
$client Phue\Client Phue Client

Property Details

$groupId protected_oe property

Group Id
protected string $groupId
Résultat string