src/ErrorHandler.php
public function setProcessorsStack(array $stack)
    {
        $this->processorsStack = [];
        foreach (array_reverse($stack) as $processor) {
            $this->pushProcessor($processor);
        }

        return $this;
    }
public function setProcessorsStack(array $stack)
    {
        $this->processorsStack = [];
        foreach (array_reverse($stack) as $processor) {
            $this->pushProcessor($processor);
        }

        return $this;
    }
public function setProcessorsStack ( array $ stack ) { $ this -> processorsStack = [ ] ; foreach ( array_reverse ( $ stack ) as $ processor ) { $ this -> pushProcessor ( $ processor ) ; } return $ this ; }
Setting the processors stack as array.

@param ProcessorInterface[] $stack processors stack

@return ErrorHandler
Setting the processors stack as array .