PHP Class Graze\Supervisor\Handler\DecoratedHandler

Inheritance: implements Graze\Supervisor\Handler\HandlerInterface
Show file Open project: graze/supervisor Class Usage Examples

Protected Properties

Property Type Description
$next Graze\Supervisor\Handler\HandlerInterface

Public Methods

Method Description
__construct ( Graze\Supervisor\Handler\HandlerInterface $next = null )

Protected Methods

Method Description
handleNextFail ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor, Exception $exception = null ) : boolean
handleNextPass ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor ) : boolean

Method Details

__construct() public method

public __construct ( Graze\Supervisor\Handler\HandlerInterface $next = null )
$next Graze\Supervisor\Handler\HandlerInterface

handleNextFail() protected method

protected handleNextFail ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor, Exception $exception = null ) : boolean
$retries integer
$supervisor Graze\Supervisor\SupervisorInterface
$exception Exception
return boolean

handleNextPass() protected method

protected handleNextPass ( integer $retries, Graze\Supervisor\SupervisorInterface $supervisor ) : boolean
$retries integer
$supervisor Graze\Supervisor\SupervisorInterface
return boolean

Property Details

$next protected property

protected HandlerInterface,Graze\Supervisor\Handler $next
return Graze\Supervisor\Handler\HandlerInterface