\React\EventLoop\TimerTimerInterface

Summary

Methods
Constants
getLoop()
getInterval()
getCallback()
setData()
getData()
isPeriodic()
isActive()
cancel()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getInterval()

getInterval() : float

Get the interval after which this timer will execute, in seconds

Returns

float

getCallback()

getCallback() : callable

Get the callback that will be executed when this timer elapses

Returns

callable

setData()

setData(mixed  $data) 

Set arbitrary data associated with timer

Parameters

mixed $data

getData()

getData() : mixed

Get arbitrary data associated with timer

Returns

mixed

isPeriodic()

isPeriodic() : boolean

Determine whether the time is periodic

Returns

boolean

isActive()

isActive() : boolean

Determine whether the time is active

Returns

boolean

cancel()

cancel() 

Cancel this timer