PHP Интерфейс Fakerino\Core\FakeHandler\HandlerInterface

Автор: Nicola Pietroluongo ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getFirstChain ( ) : Handler Returns the first Handler in the chain.
getOutput ( string $class, string | array | null $options = null ) : string | array Generates the output.
handle ( FakeElement $data ) : mixed Handles the request or redirect the request to the successor.
resetFirstChain ( ) : Handler Resets the first Handler in the chain.
setSuccessor ( Fakerino\Core\FakeHandler\HandlerInterface $handler ) Sets a successor handler, in case the class is not able to satisfy the request.

Описание методов

getFirstChain() статический публичный Метод

Returns the first Handler in the chain.
static public getFirstChain ( ) : Handler
Результат Handler

getOutput() публичный Метод

Generates the output.
public getOutput ( string $class, string | array | null $options = null ) : string | array
$class string
$options string | array | null
Результат string | array

handle() публичный Метод

Handles the request or redirect the request to the successor.
public handle ( FakeElement $data ) : mixed
$data Fakerino\Core\FakeElement
Результат mixed

resetFirstChain() статический публичный Метод

Resets the first Handler in the chain.
static public resetFirstChain ( ) : Handler
Результат Handler

setSuccessor() публичный Метод

Sets a successor handler, in case the class is not able to satisfy the request.
public setSuccessor ( Fakerino\Core\FakeHandler\HandlerInterface $handler )
$handler Fakerino\Core\FakeHandler\HandlerInterface