PHP Class Phue\Rule

Show file Open project: sqmk/phue

Protected Properties

Property Type Description
$attributes stdClass Rule attributes
$client Client Phue client
$id integer Id

Public Methods

Method Description
__construct ( string $id, stdClass $attributes, Client $client ) Construct a Phue Rule object
__toString ( ) : string __toString
delete ( ) Delete rule
getActions ( ) : array Get actions
getConditions ( ) : array Get conditions
getCreateDate ( ) : string Get create date
getId ( ) : integer Get rule Id
getLastTriggeredTime ( ) : string Get last triggered time
getName ( ) : string Get assigned name of rule
getOwner ( ) : string Get owner
getTriggeredCount ( ) : integer Get triggered count
isEnabled ( ) : boolean Is enabled?

Method Details

__construct() public method

Construct a Phue Rule object
public __construct ( string $id, stdClass $attributes, Client $client )
$id string Id
$attributes stdClass Rule attributes
$client Client Phue client

__toString() public method

__toString
public __toString ( ) : string
return string Rule Id

delete() public method

Delete rule
public delete ( )

getActions() public method

Get actions
public getActions ( ) : array
return array List of actions

getConditions() public method

Get conditions
public getConditions ( ) : array
return array List of conditions

getCreateDate() public method

Get create date
public getCreateDate ( ) : string
return string Time

getId() public method

Get rule Id
public getId ( ) : integer
return integer Rule id

getLastTriggeredTime() public method

Get last triggered time
public getLastTriggeredTime ( ) : string
return string Time

getName() public method

Get assigned name of rule
public getName ( ) : string
return string Name of rule

getOwner() public method

Get owner
public getOwner ( ) : string
return string Owner

getTriggeredCount() public method

Get triggered count
public getTriggeredCount ( ) : integer
return integer Triggered count

isEnabled() public method

Is enabled?
public isEnabled ( ) : boolean
return boolean True of enabled, false if not

Property Details

$attributes protected property

Rule attributes
protected stdClass $attributes
return stdClass

$client protected property

Phue client
protected Client,phue $client
return Client

$id protected property

Id
protected int $id
return integer