static protected function parse($commandString, $options = array())
    {
        $members = array_filter(explode(' ', $commandString));

        if (!empty($members)) {
            $commandName = array_shift($members);

            return new Command($commandName, $members, $options);
        }

        return new NullCommand();
    }
static protected function parse($commandString, $options = array())
    {
        $members = array_filter(explode(' ', $commandString));

        if (!empty($members)) {
            $commandName = array_shift($members);

            return new Command($commandName, $members, $options);
        }

        return new NullCommand();
    }
static protected function parse ( $ commandString , $ options = array ( ) ) { $ members = array_filter ( explode ( ' ' , $ commandString ) ) ; if ( ! empty ( $ members ) ) { $ commandName = array_shift ( $ members ) ; return new Command ( $ commandName , $ members , $ options ) ; } return new NullCommand ( ) ; }
Parse a command from a string representation and return the resulting
object.
If no valid command is found, a NullCommand will be returned.

@param string $commandString The command string to parse.
@param array  $options       (Optional) options for the command.

@return \Clinner\Command\CommandInterface
Parse a command from a string representation and return the resulting object . If no valid command is found a NullCommand will be returned .