protected function matchCommand($name)
    {
        foreach ($this->commands as $cmd) {
            if ($this->startsWith($name, $cmd)) {
                return true;
            }
        }

        return false;
    }
protected function matchCommand($name)
    {
        foreach ($this->commands as $cmd) {
            if ($this->startsWith($name, $cmd)) {
                return true;
            }
        }

        return false;
    }
protected function matchCommand ( $ name ) { foreach ( $ this -> commands as $ cmd ) { if ( $ this -> startsWith ( $ name , $ cmd ) ) { return true ; } } return false ; }
Check whether input matches a defined command.

@param string $name

@return bool
Check whether input matches a defined command .