PHP 클래스 Phue\Schedule

파일 보기 프로젝트 열기: sqmk/phue

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes stdClass Schedule attributes
$client Client Phue client
$id integer Id

공개 메소드들

메소드 설명
__construct ( integer $id, stdClass $attributes, Client $client ) 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

메소드 상세

__construct() 공개 메소드

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

__toString() 공개 메소드

__toString
public __toString ( ) : string
리턴 string Schedule Id

delete() 공개 메소드

Delete schedule
public delete ( )

getCommand() 공개 메소드

Get command
public getCommand ( ) : array
리턴 array Command attributes

getDescription() 공개 메소드

Get description
public getDescription ( ) : string
리턴 string Description of Schedule

getId() 공개 메소드

Get schedule Id
public getId ( ) : integer
리턴 integer Schedule id

getName() 공개 메소드

Get assigned name of Schedule
public getName ( ) : string
리턴 string Name of Schedule

getStatus() 공개 메소드

Get status
public getStatus ( ) : string
리턴 string Get status.

getTime() 공개 메소드

Get scheduled time
public getTime ( ) : string
리턴 string Time of schedule

isAutoDeleted() 공개 메소드

Is auto deleted?
public isAutoDeleted ( ) : boolean
리턴 boolean True if auto delete, false if not

isEnabled() 공개 메소드

Is schedule enabled.
public isEnabled ( ) : boolean
리턴 boolean True if enabled, false if not.

setAutoDelete() 공개 메소드

Set auto delete
public setAutoDelete ( boolean $flag ) : self
$flag boolean True to auto delete, false if not
리턴 self This object

setCommand() 공개 메소드

Set command
public setCommand ( Phue\Command\ActionableInterface $command ) : self
$command Phue\Command\ActionableInterface Actionable command
리턴 self This object

setDescription() 공개 메소드

Set description
public setDescription ( string $description ) : self
$description string
리턴 self This object

setName() 공개 메소드

Set name of schedule
public setName ( string $name ) : self
$name string
리턴 self This object

setStatus() 공개 메소드

Set status.
public setStatus ( string $status ) : self
$status string Status.
리턴 self This object

setTime() 공개 메소드

Set time
public setTime ( string $time ) : self
$time string Time
리턴 self This object

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

Schedule attributes
protected stdClass $attributes
리턴 stdClass

$client 보호되어 있는 프로퍼티

Phue client
protected Client,phue $client
리턴 Client

$id 보호되어 있는 프로퍼티

Id
protected int $id
리턴 integer