PHP Class Kraken\Loop\Timer\Timer

Inheritance: implements Kraken\Loop\Timer\TimerInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$callback callable
$data mixed | null
$interval float
$loop Kraken\Loop\LoopModelInterface
$periodic boolean

Public Methods

Method Description
__construct ( Kraken\Loop\LoopModelInterface $loop, $interval, callable $callback, boolean $periodic = false, mixed | null $data = null )
__destruct ( )
cancel ( )
getCallback ( )
getData ( )
getInterval ( )
getLoop ( )
isActive ( )
isPeriodic ( )
setData ( $data )

Method Details

__construct() public method

public __construct ( Kraken\Loop\LoopModelInterface $loop, $interval, callable $callback, boolean $periodic = false, mixed | null $data = null )
$loop Kraken\Loop\LoopModelInterface
$interval
$callback callable
$periodic boolean
$data mixed | null

__destruct() public method

public __destruct ( )

cancel() public method

public cancel ( )

getCallback() public method

public getCallback ( )

getData() public method

public getData ( )

getInterval() public method

public getInterval ( )

getLoop() public method

public getLoop ( )

isActive() public method

public isActive ( )

isPeriodic() public method

public isPeriodic ( )

setData() public method

public setData ( $data )

Property Details

$callback protected property

protected callable $callback
return callable

$data protected property

protected mixed|null $data
return mixed | null

$interval protected property

protected float $interval
return float

$loop protected property

protected LoopModelInterface,Kraken\Loop $loop
return Kraken\Loop\LoopModelInterface

$periodic protected property

protected bool $periodic
return boolean