PHP 클래스 Phue\Command\CreateSchedule

상속: implements Phue\Command\CommandInterface
파일 보기 프로젝트 열기: sqmk/phue 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes array Schedule attributes
$command Phue\Command\ActionableInterface Command
$time Phue\TimePattern\TimePatternInterface Time pattern

공개 메소드들

메소드 설명
__construct ( string $name = null, mixed $time = null, Phue\Command\ActionableInterface $command = null ) Constructs a create schedule command
autodelete ( boolean $flag ) : self Set autodelete
command ( Phue\Command\ActionableInterface $command ) : self Set command
description ( string $description ) : self Set description
name ( string $name ) : self Set name
send ( Client $client ) : integer Send command
status ( $status ) : self Set status
time ( string $time ) : self Set time

메소드 상세

__construct() 공개 메소드

Constructs a create schedule command
public __construct ( string $name = null, mixed $time = null, Phue\Command\ActionableInterface $command = null )
$name string Name of schedule
$time mixed Time to run command
$command Phue\Command\ActionableInterface Actionable command

autodelete() 공개 메소드

Set autodelete
public autodelete ( boolean $flag ) : self
$flag boolean Flag
리턴 self This object

command() 공개 메소드

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

description() 공개 메소드

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

name() 공개 메소드

Set name
public name ( string $name ) : self
$name string Name
리턴 self This object

send() 공개 메소드

Send command
public send ( Client $client ) : integer
$client Phue\Client Phue Client
리턴 integer Schedule Id

status() 공개 메소드

Set status
public status ( $status ) : self
리턴 self $status Status

time() 공개 메소드

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

프로퍼티 상세

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

Schedule attributes
protected array $attributes
리턴 array

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

Command
protected ActionableInterface,Phue\Command $command
리턴 Phue\Command\ActionableInterface

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

Time pattern
protected TimePatternInterface,Phue\TimePattern $time
리턴 Phue\TimePattern\TimePatternInterface