Property | Type | Description | |
---|---|---|---|
$attributes | stdClass | Schedule attributes | |
$client | Phue client | ||
$id | integer | Id |
Method | Description | |
---|---|---|
__construct ( integer $id, stdClass $attributes, |
Construct a Phue Schedule object | |
__toString ( ) : string | __toString | |
delete ( ) | Delete schedule | |
getCommand ( ) : array | Get command | |
getDescription ( ) : string | Get description | |
getId ( ) : integer | Get schedule Id | |
getName ( ) : string | Get assigned name of Schedule | |
getStatus ( ) : string | Get status | |
getTime ( ) : string | Get scheduled time | |
isAutoDeleted ( ) : boolean | Is auto deleted? | |
isEnabled ( ) : boolean | Is schedule enabled. | |
setAutoDelete ( boolean $flag ) : self | Set auto delete | |
setCommand ( Phue\Command\ActionableInterface $command ) : self | Set command | |
setDescription ( string $description ) : self | Set description | |
setName ( string $name ) : self | Set name of schedule | |
setStatus ( string $status ) : self | Set status. | |
setTime ( string $time ) : self | Set time |
public __construct ( integer $id, stdClass $attributes, |
||
$id | integer | Id |
$attributes | stdClass | Schedule attributes |
$client | Phue client |
public getCommand ( ) : array | ||
return | array | Command attributes |
public getDescription ( ) : string | ||
return | string | Description of Schedule |
public isAutoDeleted ( ) : boolean | ||
return | boolean | True if auto delete, false if not |
public setAutoDelete ( boolean $flag ) : self | ||
$flag | boolean | True to auto delete, false if not |
return | self | This object |
public setCommand ( Phue\Command\ActionableInterface $command ) : self | ||
$command | Phue\Command\ActionableInterface | Actionable command |
return | self | This object |
public setDescription ( string $description ) : self | ||
$description | string | |
return | self | This object |
protected stdClass $attributes | ||
return | stdClass |