PHP 클래스 PHPDaemon\Structures\StackCallbacks

저자: Zorin Vasily ([email protected])
상속: extends SplStack, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 메소드들

메소드 설명
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