Graze\Supervisor\Handler\DecoratedHandler::__construct PHP Method

__construct() public method

public __construct ( Graze\Supervisor\Handler\HandlerInterface $next = null )
$next Graze\Supervisor\Handler\HandlerInterface
    public function __construct(HandlerInterface $next = null)
    {
        $this->next = $next;
    }

Usage Example

Example #1
0
 /**
  * @param integer $max
  * @param HandlerInterface $handler
  */
 public function __construct($max, HandlerInterface $handler = null)
 {
     $this->max = (int) $max;
     parent::__construct($handler);
 }