CallbackRequestHandler
extends AbstractHandler
in package
implements
PsrFactoriesAwareInterface
Uses
PsrFactoriesAwareTrait
Class CallbackRequestHandler
Tags
Table of Contents
Interfaces
- PsrFactoriesAwareInterface
- Interface PsrFactoriesAwareInterface
Methods
- __construct() : mixed
- CallbackRequestHandler constructor.
- append() : HandlerInterface
- Appends handler to the end of the chain. Returns handler which was used.
- getLastHandler() : HandlerInterface
- Returns last handler in the chain. Returns current handler if this chain consist of only this handler.
- getNext() : HandlerInterface|null
- Returns next handler or null if it's not present.
- handle() : mixed
- Handle some generic item.
- setNext() : HandlerInterface
- Sets next handler in the chain.
- setRequestFactory() : self
- setStreamFactory() : self
- setUriFactory() : self
Methods
__construct()
CallbackRequestHandler constructor.
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
append()
Appends handler to the end of the chain. Returns handler which was used.
public
append(HandlerInterface $handler) : HandlerInterface
Parameters
- $handler : HandlerInterface
Tags
Return values
HandlerInterfacegetLastHandler()
Returns last handler in the chain. Returns current handler if this chain consist of only this handler.
public
getLastHandler() : HandlerInterface
Tags
Return values
HandlerInterfacegetNext()
Returns next handler or null if it's not present.
public
getNext() : HandlerInterface|null
Tags
Return values
HandlerInterface|nullhandle()
Handle some generic item.
public
handle(mixed $item) : mixed
Parameters
- $item : mixed
Tags
setNext()
Sets next handler in the chain.
public
setNext(HandlerInterface $handler) : HandlerInterface
Parameters
- $handler : HandlerInterface
Tags
Return values
HandlerInterfacesetRequestFactory()
public
setRequestFactory(RequestFactoryInterface $requestFactory) : self
Parameters
- $requestFactory : RequestFactoryInterface
Return values
selfsetStreamFactory()
public
setStreamFactory(StreamFactoryInterface $streamFactory) : self
Parameters
- $streamFactory : StreamFactoryInterface
Return values
selfsetUriFactory()
public
setUriFactory(UriFactoryInterface $uriFactory) : self
Parameters
- $uriFactory : UriFactoryInterface