5 use Symfony\Component\Console\Output\NullOutput;
6 use Symfony\Component\Console\Output\OutputInterface;
11 * @var \Symfony\Component\Console\Output\OutputInterface
16 * @param \Symfony\Component\Console\Output\OutputInterface $output
20 * @see \Robo\Contract\OutputAwareInterface::setOutput()
22 public function setOutput(OutputInterface $output)
24 $this->output = $output;
30 * @return \Symfony\Component\Console\Output\OutputInterface
32 protected function output()
34 if (!isset($this->output)) {
35 $this->setOutput(new NullOutput());
41 * Backwards compatibility
43 * @return \Symfony\Component\Console\Output\OutputInterface
47 protected function getOutput()
49 return $this->output();