Class ResponseCollection

Summary

Fully Qualified Name: Zend\EventManager\ResponseCollection
Extends: SplStack

Description

Collection of signal handler return values

Methods

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

Method Details

contains()

Check if any of the responses match the given value.

Parameter Name Type Description
$value mixed The

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()

Mark the collection as stopped (or its opposite)

Parameter Name Type Description
$flag bool

Returns:

stopped()

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

Returns: bool

Top