PHP Класс Zend\Expressive\Emitter\EmitterStack

The implementations emit() method iterates itself. When iterating the stack, the first emitter to return a value that is not identical to boolean false will short-circuit iteration.
Наследование: extends SplStac\SplStack, implements Zend\Diactoros\Response\EmitterInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
emit ( Psr\Http\Message\ResponseInterface $response ) : false | null Emit a response
offsetSet ( mixed $index, Zend\Diactoros\Response\EmitterInterface $emitter ) Set an emitter on the stack by index.
push ( Zend\Diactoros\Response\EmitterInterface $emitter ) Push an emitter to the stack.
unshift ( Zend\Diactoros\Response\EmitterInterface $emitter ) Unshift an emitter to the stack.

Приватные методы

Метод Описание
validateEmitter ( mixed $emitter ) Validate that an emitter implements EmitterInterface.

Описание методов

emit() публичный Метод

Loops through the stack, calling emit() on each; any that return a value other than boolean false will short-circuit, skipping any remaining emitters in the stack. As such, return a boolean false value from an emitter to indicate it cannot emit the response.
public emit ( Psr\Http\Message\ResponseInterface $response ) : false | null
$response Psr\Http\Message\ResponseInterface
Результат false | null

offsetSet() публичный Метод

Set an emitter on the stack by index.
public offsetSet ( mixed $index, Zend\Diactoros\Response\EmitterInterface $emitter )
$index mixed
$emitter Zend\Diactoros\Response\EmitterInterface

push() публичный Метод

Push an emitter to the stack.
public push ( Zend\Diactoros\Response\EmitterInterface $emitter )
$emitter Zend\Diactoros\Response\EmitterInterface

unshift() публичный Метод

Unshift an emitter to the stack.
public unshift ( Zend\Diactoros\Response\EmitterInterface $emitter )
$emitter Zend\Diactoros\Response\EmitterInterface