public function withOutput(OutputInterface $output): self
    {
        $listener = clone $this;
        $listener->output = $output;

        return $listener;
    }
public function withOutput(OutputInterface $output): self
    {
        $listener = clone $this;
        $listener->output = $output;

        return $listener;
    }
public function withOutput ( OutputInterface $ output ) : self { $ listener = clone $ this ; $ listener -> output = $ output ; return $ listener ; }
Configure listener with new output.

@param OutputInterface $output
@return DebugListener
Configure listener with new output .