RetailCRM API Client

CallbackResponseHandler extends AbstractResponseHandler

Class CallbackResponseHandler

Tags
category

CallbackResponseHandler

Table of Contents

Methods

__construct()  : mixed
CallbackResponseHandler 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()

CallbackResponseHandler constructor.

public __construct(callable $callback) : mixed
Parameters
$callback : callable

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