PHP 인터페이스 Fakerino\Core\FakeHandler\HandlerInterface

저자: Nicola Pietroluongo ([email protected])
파일 보기 프로젝트 열기: fakerino/fakerino 0 사용 예제들

공개 메소드들

메소드 설명
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