PHP Interface Kraken\Loop\Timer\TimerCollectionInterface

Show file Open project: kraken-php/framework

Public Methods

Method Description
addTimer ( string $name, Kraken\Loop\Timer\TimerInterface $timer )
existsTimer ( string $name ) : boolean
getTimer ( string $name ) : Kraken\Loop\Timer\TimerInterface | null
getTimers ( ) : Kraken\Loop\Timer\TimerInterface[]
removeTimer ( string $name )

Method Details

addTimer() public method

public addTimer ( string $name, Kraken\Loop\Timer\TimerInterface $timer )
$name string
$timer Kraken\Loop\Timer\TimerInterface

existsTimer() public method

public existsTimer ( string $name ) : boolean
$name string
return boolean

getTimer() public method

public getTimer ( string $name ) : Kraken\Loop\Timer\TimerInterface | null
$name string
return Kraken\Loop\Timer\TimerInterface | null

getTimers() public method

public getTimers ( ) : Kraken\Loop\Timer\TimerInterface[]
return Kraken\Loop\Timer\TimerInterface[]

removeTimer() public method

public removeTimer ( string $name )
$name string