PHP Class PHPDaemon\Structures\StackCallbacks

Author: Zorin Vasily ([email protected])
Inheritance: extends SplStack, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

Méthode Description
executeAll ( variadic $args ) : integer Executes all callbacks with given arguments
executeAndKeepOne ( $args ) : boolean Executes one callback from the top with given arguments without taking it out
executeOne ( $args ) : boolean Executes one callback from the top with given arguments
push ( callable $cb ) : void Push callback to the bottom of stack
reset ( ) : void Shifts all callbacks sequentially
toArray ( ) : array Return array
unshift ( callable $cb ) : void Push callback to the top of stack

Method Details

executeAll() public méthode

Executes all callbacks with given arguments
public executeAll ( variadic $args ) : integer
$args variadic
Résultat integer

executeAndKeepOne() public méthode

Executes one callback from the top with given arguments without taking it out
public executeAndKeepOne ( $args ) : boolean
$args Arguments
Résultat boolean

executeOne() public méthode

Executes one callback from the top with given arguments
public executeOne ( $args ) : boolean
$args Arguments
Résultat boolean

push() public méthode

Push callback to the bottom of stack
public push ( callable $cb ) : void
$cb callable Callback
Résultat void

reset() public méthode

Shifts all callbacks sequentially
public reset ( ) : void
Résultat void

toArray() public méthode

Return array
public toArray ( ) : array
Résultat array

unshift() public méthode

Push callback to the top of stack
public unshift ( callable $cb ) : void
$cb callable Callback
Résultat void