public function setOutput(OutputInterface $output)
    {
        $this->output = $output;
        $this->stdErr = $output instanceof ConsoleOutputInterface
            ? $output->getErrorOutput()
            : $output;
    }
public function setOutput(OutputInterface $output)
    {
        $this->output = $output;
        $this->stdErr = $output instanceof ConsoleOutputInterface
            ? $output->getErrorOutput()
            : $output;
    }
public function setOutput ( OutputInterface $ output ) { $ this -> output = $ output ; $ this -> stdErr = $ output instanceof ConsoleOutputInterface ? $ output -> getErrorOutput ( ) : $ output ; }
Change the output object.

@param OutputInterface $output
Change the output object .