PHP Class Phue\Command\CreateRule

Inheritance: implements Phue\Command\CommandInterface
Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$actions array Actions
$conditions array Conditions
$name string Name

Méthodes publiques

Méthode 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 méthode

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

addAction() public méthode

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

addCondition() public méthode

Add condition
public addCondition ( Condition $condition ) : self
$condition Phue\Condition Condition
Résultat self This object

name() public méthode

Set name
public name ( string $name ) : self
$name string Name
Résultat self This object

send() public méthode

Send command
public send ( Client $client ) : integer
$client Phue\Client Phue Client
Résultat integer Rule Id

Property Details

$actions protected_oe property

Actions
protected array $actions
Résultat array

$conditions protected_oe property

Conditions
protected array $conditions
Résultat array

$name protected_oe property

Name
protected string $name
Résultat string