public function writeOutput($str)
    {
        if (empty($str)) {
            return $this;
        }

        $this->output[] = $str;

        if ($this->consoleOutput) {
            $this->consoleOutput->writeln($str);
        }

        return $this;
    }
public function writeOutput($str)
    {
        if (empty($str)) {
            return $this;
        }

        $this->output[] = $str;

        if ($this->consoleOutput) {
            $this->consoleOutput->writeln($str);
        }

        return $this;
    }
public function writeOutput ( $ str ) { if ( empty ( $ str ) ) { return $ this ; } $ this -> output [ ] = $ str ; if ( $ this -> consoleOutput ) { $ this -> consoleOutput -> writeln ( $ str ) ; } return $ this ; }
Writes output to the run.

@param string $str

@return self
Writes output to the run .