public function popFirst(&$first) : NodePath
    {
        $path = $this->path;
        $first = array_shift($path);
        return new NodePath($path);
    }
public function popFirst(&$first) : NodePath
    {
        $path = $this->path;
        $first = array_shift($path);
        return new NodePath($path);
    }
public function popFirst ( & $ first ) : NodePath { $ path = $ this -> path ; $ first = array_shift ( $ path ) ; return new NodePath ( $ path ) ; }
Remove the first item from path and return new path
@param string $first
@return NodePath
Remove the first item from path and return new path