Graze\Supervisor\SupervisorSupervisor::__construct PHP Метод

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

public __construct ( array $supervisors, Graze\Supervisor\Handler\HandlerInterface $handler = null )
$supervisors array
$handler Graze\Supervisor\Handler\HandlerInterface
    public function __construct(array $supervisors, HandlerInterface $handler = null)
    {
        $this->handler = $handler ?: $this->getDefaultHandler();
        $this->supervisors = array_filter($supervisors, function (SupervisorInterface $supervisor) {
            return true;
        });
    }