RetailCRM API Client

AbstractHandler
in package
implements HandlerInterface

AbstractYes

Class AbstractHandler

All handlers are modeled as a chain of responsibility.

Tags
see
https://refactoring.guru/design-patterns/chain-of-responsibility
category

AbstractHandler

Table of Contents

Interfaces

HandlerInterface
Interface HandlerInterface

Methods

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.

Methods

handle()

Handle some generic item.

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

        
On this page

Search results