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

@param  array
@return mixed
commands getter and setter .