RetailCRM API Client

PsrRequestHandler extends AbstractHandler implements PsrFactoriesAwareInterface Uses PsrFactoriesAwareTrait

Class PsrRequestHandler

Tags
category

PsrRequestHandler

Table of Contents

Interfaces

PsrFactoriesAwareInterface
Interface PsrFactoriesAwareInterface

Methods

__construct()  : mixed
PsrRequestHandler 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|null
Creates base PSR-7 request model with URI and method.
setNext()  : HandlerInterface
Sets next handler in the chain.
setRequestFactory()  : self
setStreamFactory()  : self
setUriFactory()  : self

Methods

__construct()

PsrRequestHandler constructor.

public __construct(UriFactoryInterface $uriFactory, RequestFactoryInterface $requestFactory) : mixed
Parameters
$uriFactory : UriFactoryInterface
$requestFactory : RequestFactoryInterface

setRequestFactory()

public setRequestFactory(RequestFactoryInterface $requestFactory) : self
Parameters
$requestFactory : RequestFactoryInterface
Return values
self

setStreamFactory()

public setStreamFactory(StreamFactoryInterface $streamFactory) : self
Parameters
$streamFactory : StreamFactoryInterface
Return values
self

setUriFactory()

public setUriFactory(UriFactoryInterface $uriFactory) : self
Parameters
$uriFactory : UriFactoryInterface
Return values
self

        
On this page

Search results