private function getOutputToWriteTo($stdErr = false)
    {
        if ($stdErr && $this->output instanceof ConsoleOutputInterface) {
            return $this->output->getErrorOutput();
        }

        return $this->output;
    }
private function getOutputToWriteTo($stdErr = false)
    {
        if ($stdErr && $this->output instanceof ConsoleOutputInterface) {
            return $this->output->getErrorOutput();
        }

        return $this->output;
    }
private function getOutputToWriteTo ( $ stdErr = false ) { if ( $ stdErr && $ this -> output instanceof ConsoleOutputInterface ) { return $ this -> output -> getErrorOutput ( ) ; } return $ this -> output ; }
Return the output to write to

@param  bool $stdErr
@return \Symfony\Component\Console\Output\OutputInterface
Return the output to write to