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
파일 보기 프로젝트 열기: zendframework/zend-expressive 1 사용 예제들

공개 메소드들

메소드 설명
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