PHP 인터페이스 Kraken\Loop\Timer\TimerInterface

파일 보기 프로젝트 열기: kraken-php/framework 0 사용 예제들

공개 메소드들

메소드 설명
cancel ( ) Cancel timer and unregister it from loop.
getCallback ( ) : callable Return callback attached to timer.
getData ( ) : mixed | null Return data associated with timer.
getInterval ( ) : float Return interval of timer.
getLoop ( ) : Kraken\Loop\LoopModelInterface Return loop.
isActive ( ) : boolean Check if timer is active.
isPeriodic ( ) : boolean Check if timer is periodic.
setData ( mixed $data ) Set data associated with timer.

메소드 상세

cancel() 공개 메소드

Cancel timer and unregister it from loop.
public cancel ( )

getCallback() 공개 메소드

Return callback attached to timer.
public getCallback ( ) : callable
리턴 callable

getData() 공개 메소드

Return data associated with timer.
public getData ( ) : mixed | null
리턴 mixed | null

getInterval() 공개 메소드

Return interval of timer.
public getInterval ( ) : float
리턴 float

getLoop() 공개 메소드

Return loop.
public getLoop ( ) : Kraken\Loop\LoopModelInterface
리턴 Kraken\Loop\LoopModelInterface

isActive() 공개 메소드

Check if timer is active.
public isActive ( ) : boolean
리턴 boolean

isPeriodic() 공개 메소드

Check if timer is periodic.
public isPeriodic ( ) : boolean
리턴 boolean

setData() 공개 메소드

Set data associated with timer.
public setData ( mixed $data )
$data mixed