PHP Class Phue\Command\UpdateRule

Inheritance: extends CreateRule
Show file Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$attributes array Rule attributes
$ruleId string Rule Id

Public Methods

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

Method Details

__construct() public method

Constructs a command
public __construct ( mixed $rule )
$rule mixed Rule Id or Rule 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

Rule attributes
protected array $attributes
return array

$ruleId protected property

Rule Id
protected string $ruleId
return string