RetailCRM API Client

HeaderAuthenticatorHandler extends AbstractHandler

Class HeaderAuthenticatorHandler

Tags
category

HeaderAuthenticatorHandler

Table of Contents

Methods

__construct()  : mixed
HeaderAuthenticatorHandler 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
Adds "x-api-key" header with provided API key
setNext()  : HandlerInterface
Sets next handler in the chain.

Methods

__construct()

HeaderAuthenticatorHandler constructor.

public __construct(string $apiKey) : mixed
Parameters
$apiKey : string

        
On this page

Search results