PHP Class Phue\Command\SetGroupAttributes

Inheritance: implements Phue\Command\CommandInterface
Show file Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$attributes array Group attributes
$groupId string Group Id

Public Methods

Method Description
__construct ( mixed $group ) Constructs a command
lights ( array $lights ) : self Set lights
name ( string $name ) : self Set name
send ( Client $client ) Send command

Method Details

__construct() public method

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

lights() public method

Set lights
public lights ( array $lights ) : self
$lights array List of light Ids or Light objects
return self This object

name() public method

Set name
public name ( string $name ) : self
$name string Name
return self This object

send() public method

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

Property Details

$attributes protected property

Group attributes
protected array $attributes
return array

$groupId protected property

Group Id
protected string $groupId
return string