PHP Class Phue\Command\SetGroupState

Inheritance: extends SetLightState, implements Phue\Command\ActionableInterface
Exibir arquivo Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$groupId string Group Id

Public Methods

Method 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 method

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

getActionableParams() public method

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

scene() public method

Set scene
public scene ( mixed $scene ) : self
$scene mixed Scene id or Scene object
return self This object

send() public method

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

Property Details

$groupId protected_oe property

Group Id
protected string $groupId
return string