HandlerStackInterface
interface HandlerStackInterface
The interface implemented by handler stacks.
Methods
Gets the current handler without removing it from the stack.
Gets the current handler stack without changing the stack.
Pushes a handler on to the stack.
Pushes multiple handlers on to the stack.
Pops a handler off the stack.
Removes all handlers from the stack.
Restores a stack of handlers.
Temporarily bypass the current handler stack and execute a callable with the supplied handler.
Details
at line 24
callable|null
handler()
Gets the current handler without removing it from the stack.
at line 31
array<callable>
handlerStack()
Gets the current handler stack without changing the stack.
at line 38
push(
callable $handler)
Pushes a handler on to the stack.
at line 45
pushAll(
array $handlers)
Pushes multiple handlers on to the stack.
at line 52
callable|null
pop()
Pops a handler off the stack.
at line 59
array<callable>
clear()
Removes all handlers from the stack.
at line 66
restore(
array $handlers)
Restores a stack of handlers.
at line 81
mixed
executeWith(
callable $callable,
callable|null $handler = null)
Temporarily bypass the current handler stack and execute a callable with the supplied handler.
This method is useful for executing PHP code that relies upon handling techniques that are incompatible with Asplode