PHP Class Phue\Command\CreateRule

Inheritance: implements Phue\Command\CommandInterface
Datei anzeigen Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$actions array Actions
$conditions array Conditions
$name string Name

Public Methods

Method Description
__construct ( string $name = '' ) Constructs a command
addAction ( Phue\Command\ActionableInterface $command ) : self Add actionable command
addCondition ( Condition $condition ) : self Add condition
name ( string $name ) : self Set name
send ( Client $client ) : integer Send command

Method Details

__construct() public method

Constructs a command
public __construct ( string $name = '' )
$name string Name

addAction() public method

Add actionable command
public addAction ( Phue\Command\ActionableInterface $command ) : self
$command Phue\Command\ActionableInterface
return self This object

addCondition() public method

Add condition
public addCondition ( Condition $condition ) : self
$condition Phue\Condition Condition
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 ) : integer
$client Phue\Client Phue Client
return integer Rule Id

Property Details

$actions protected_oe property

Actions
protected array $actions
return array

$conditions protected_oe property

Conditions
protected array $conditions
return array

$name protected_oe property

Name
protected string $name
return string