PHP Интерфейс Kraken\Loop\Timer\TimerInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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