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