public function parse($path, $properties)
    {
        $segments = explode('\\', str_replace('/', '\\', $path));
        $name = array_pop($segments);
        $namespace = implode('\\', $segments);

        $properties = $this->parseProperties($properties);

        return new CommandInput($name, $namespace, $properties);
    }
public function parse($path, $properties)
    {
        $segments = explode('\\', str_replace('/', '\\', $path));
        $name = array_pop($segments);
        $namespace = implode('\\', $segments);

        $properties = $this->parseProperties($properties);

        return new CommandInput($name, $namespace, $properties);
    }
public function parse ( $ path , $ properties ) { $ segments = explode ( '\\' , str_replace ( '/' , '\\' , $ path ) ) ; $ name = array_pop ( $ segments ) ; $ namespace = implode ( '\\' , $ segments ) ; $ properties = $ this -> parseProperties ( $ properties ) ; return new CommandInput ( $ name , $ namespace , $ properties ) ; }
Parse the command input.

@param $path
@param $properties
@return CommandInput
Parse the command input .