RetailCRM API Client

UnmarshalResponseHandler extends AbstractResponseHandler

Class UnmarshalResponseHandler

Tags
category

UnmarshalResponseHandler

SuppressWarnings

(PHPMD.ElseExpression)

Table of Contents

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

handle()

Handle some generic item.

public handle(mixed $item) : mixed
Parameters
$item : mixed
Tags
inheritDoc

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