src/Command.php
public function console(ConsoleInterface $value = null)
    {
        if (null === $value) {
            return $this->console;
        }
        $this->console = $value;
        foreach ($this->commands as $name => $command) {
            $command->console = $value;
        }
        return $this;
    }
public function console(ConsoleInterface $value = null)
    {
        if (null === $value) {
            return $this->console;
        }
        $this->console = $value;
        foreach ($this->commands as $name => $command) {
            $command->console = $value;
        }
        return $this;
    }
public function console ( ConsoleInterface $ value = null ) { if ( null === $ value ) { return $ this -> console ; } $ this -> console = $ value ; foreach ( $ this -> commands as $ name => $ command ) { $ command -> console = $ value ; } return $ this ; }
console getter and setter.

@param  ConsoleInterface
@return mixed
console getter and setter .