ResponseCollection
extends SplStack
in package
Collection of signal handler return values
Table of Contents
- $stopped : mixed
- contains() : bool
- Check if any of the responses match the given value.
- first() : mixed
- Convenient access to the first handler return value.
- last() : mixed
- Convenient access to the last handler return value.
- setStopped() : mixed
- Mark the collection as stopped (or its opposite)
- stopped() : bool
- Did the last response provided trigger a short circuit of the stack?
Properties
$stopped
protected
mixed
$stopped
= false
Methods
contains()
Check if any of the responses match the given value.
public
contains(mixed $value) : bool
Parameters
- $value : mixed
-
The value to look for among responses
Return values
bool —first()
Convenient access to the first handler return value.
public
first() : mixed
Return values
mixed —The first handler return value
last()
Convenient access to the last handler return value.
public
last() : mixed
If the collection is empty, returns null. Otherwise, returns value returned by last handler.
Return values
mixed —The last handler return value
setStopped()
Mark the collection as stopped (or its opposite)
public
setStopped(bool $flag) : mixed
Parameters
- $flag : bool
Return values
mixed —stopped()
Did the last response provided trigger a short circuit of the stack?
public
stopped() : bool