public function setHandlers(array $handlers): self
    {
        $this->handlers = [];
        foreach (array_reverse($handlers) as $handler) {
            $this->pushHandler($handler);
        }

        return $this;
    }
public function setHandlers(array $handlers): self
    {
        $this->handlers = [];
        foreach (array_reverse($handlers) as $handler) {
            $this->pushHandler($handler);
        }

        return $this;
    }
public function setHandlers ( array $ handlers ) : self { $ this -> handlers = [ ] ; foreach ( array_reverse ( $ handlers ) as $ handler ) { $ this -> pushHandler ( $ handler ) ; } return $ this ; }
Set handlers, replacing all existing ones.

If a map is passed, keys will be ignored.

@param HandlerInterface[] $handlers
Set handlers replacing all existing ones .