src/UrlPath.php
public function getDirectory(): UrlPathInterface
    {
        return new self($this->myIsAbsolute, $this->myAboveBaseLevel, $this->myDirectoryParts, null);
    }
public function getDirectory(): UrlPathInterface
    {
        return new self($this->myIsAbsolute, $this->myAboveBaseLevel, $this->myDirectoryParts, null);
    }
public function getDirectory ( ) : UrlPathInterface { return new self ( $ this -> myIsAbsolute , $ this -> myAboveBaseLevel , $ this -> myDirectoryParts , null ) ; }
Returns the directory of the url path.

@since 1.0.0

@return UrlPathInterface The directory of the url path.
Returns the directory of the url path .