PHP Class Kraken\Loop\Timer\TimerBox

Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$scheduler SplPriorityQueue
$time float
$timers SplObjectStorage

Méthodes publiques

Méthode Description
__construct ( )
add ( Kraken\Loop\Timer\TimerInterface $timer )
contains ( Kraken\Loop\Timer\TimerInterface $timer ) : boolean
getFirst ( ) : Kraken\Loop\Timer\TimerInterface | null
getTime ( ) : mixed
isEmpty ( ) : boolean
remove ( Kraken\Loop\Timer\TimerInterface $timer )
tick ( )
updateTime ( ) : float

Method Details

__construct() public méthode

public __construct ( )

add() public méthode

public add ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface

contains() public méthode

public contains ( Kraken\Loop\Timer\TimerInterface $timer ) : boolean
$timer Kraken\Loop\Timer\TimerInterface
Résultat boolean

getFirst() public méthode

public getFirst ( ) : Kraken\Loop\Timer\TimerInterface | null
Résultat Kraken\Loop\Timer\TimerInterface | null

getTime() public méthode

public getTime ( ) : mixed
Résultat mixed

isEmpty() public méthode

public isEmpty ( ) : boolean
Résultat boolean

remove() public méthode

public remove ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface

tick() public méthode

public tick ( )

updateTime() public méthode

public updateTime ( ) : float
Résultat float

Property Details

$scheduler protected_oe property

protected SplPriorityQueue $scheduler
Résultat SplPriorityQueue

$time protected_oe property

protected float $time
Résultat float

$timers protected_oe property

protected SplObjectStorage $timers
Résultat SplObjectStorage