Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
ResponseCollection Class Reference

Collection of signal handler return values. More...

Public Member Functions

 stopped ()
 Did the last response provided trigger a short circuit of the stack?
 
 setStopped ($flag)
 Mark the collection as stopped (or its opposite)
 
 first ()
 Convenient access to the first handler return value.
 
 last ()
 Convenient access to the last handler return value.
 
 contains ($value)
 Check if any of the responses match the given value.
 

Protected Attributes

 $stopped = false
 

Detailed Description

Collection of signal handler return values.

Member Function Documentation

contains (   $value)

Check if any of the responses match the given value.

Parameters
mixed$valueThe value to look for among responses
Returns
bool
first ( )

Convenient access to the first handler return value.

Returns
mixed The first handler return value
last ( )

Convenient access to the last handler return value.

If the collection is empty, returns null. Otherwise, returns value returned by last handler.

Returns
mixed The last handler return value
setStopped (   $flag)

Mark the collection as stopped (or its opposite)

Parameters
bool$flag
stopped ( )

Did the last response provided trigger a short circuit of the stack?

Returns
bool

Member Data Documentation

$stopped = false
protected