PHP Класс PHPDaemon\Structures\StackCallbacks

Автор: Zorin Vasily ([email protected])
Наследование: extends SplStack, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

executeAll() публичный Метод

Executes all callbacks with given arguments
public executeAll ( variadic $args ) : integer
$args variadic
Результат integer

executeAndKeepOne() публичный Метод

Executes one callback from the top with given arguments without taking it out
public executeAndKeepOne ( $args ) : boolean
$args Arguments
Результат boolean

executeOne() публичный Метод

Executes one callback from the top with given arguments
public executeOne ( $args ) : boolean
$args Arguments
Результат boolean

push() публичный Метод

Push callback to the bottom of stack
public push ( callable $cb ) : void
$cb callable Callback
Результат void

reset() публичный Метод

Shifts all callbacks sequentially
public reset ( ) : void
Результат void

toArray() публичный Метод

Return array
public toArray ( ) : array
Результат array

unshift() публичный Метод

Push callback to the top of stack
public unshift ( callable $cb ) : void
$cb callable Callback
Результат void