RetailCRM API Client

AbstractResponseHandler extends AbstractHandler implements SerializerAwareInterface, EventDispatcherAwareInterface, ApiExceptionFactoryAwareInterface Uses SerializerAwareTrait, EventDispatcherAwareTrait, ApiExceptionFactoryAwareTrait

AbstractYes

Class AbstractResponseHandler

Tags
category

AbstractResponseHandler

Table of Contents

Interfaces

SerializerAwareInterface
Interface SerializerAwareInterface
EventDispatcherAwareInterface
Interface EventDispatcherAwareInterface
ApiExceptionFactoryAwareInterface
Interface ApiExceptionFactoryAwareInterface

Methods

__construct()  : mixed
ResponseTransformer 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.
getSerializer()  : SerializerInterface
handle()  : mixed
Handle some generic item.
setApiExceptionFactory()  : self
setEventDispatcher()  : object
Sets PSR-14 compatible event dispatcher. Useful if you want to handle specific errors in one place.
setNext()  : HandlerInterface
Sets next handler in the chain.
setSerializer()  : self

Methods

__construct()

ResponseTransformer constructor.

public __construct(SerializerInterface $serializer, ApiExceptionFactory $exceptionFactory[, EventDispatcherInterface|null $eventDispatcher = null ]) : mixed
Parameters
$serializer : SerializerInterface
$exceptionFactory : ApiExceptionFactory
$eventDispatcher : EventDispatcherInterface|null = null

getSerializer()

public getSerializer() : SerializerInterface
Return values
SerializerInterface

setEventDispatcher()

Sets PSR-14 compatible event dispatcher. Useful if you want to handle specific errors in one place.

public setEventDispatcher(EventDispatcherInterface|null $eventDispatcher) : object
Parameters
$eventDispatcher : EventDispatcherInterface|null
Return values
object

setSerializer()

public setSerializer(SerializerInterface $serializer) : self
Parameters
$serializer : SerializerInterface
Return values
self

        
On this page

Search results