src/UrlPath.php
public function toAbsolute(): UrlPathInterface
    {
        if ($this->myAboveBaseLevel > 0) {
            throw new UrlPathLogicException('Url path "' . $this->__toString() . '" can not be made absolute: Relative path is above base level.');
        }

        return new self(true, $this->myAboveBaseLevel, $this->myDirectoryParts, $this->myFilename);
    }
public function toAbsolute(): UrlPathInterface
    {
        if ($this->myAboveBaseLevel > 0) {
            throw new UrlPathLogicException('Url path "' . $this->__toString() . '" can not be made absolute: Relative path is above base level.');
        }

        return new self(true, $this->myAboveBaseLevel, $this->myDirectoryParts, $this->myFilename);
    }
public function toAbsolute ( ) : UrlPathInterface { if ( $ this -> myAboveBaseLevel > 0 ) { throw new UrlPathLogicException ( 'Url path "' . $ this -> __toString ( ) . '" can not be made absolute: Relative path is above base level.' ) ; } return new self ( true , $ this -> myAboveBaseLevel , $ this -> myDirectoryParts , $ this -> myFilename ) ; }
Returns The url path as an absolute path.

@since 1.0.0

@throws UrlPathLogicException if the url path could not be made absolute.

@return UrlPathInterface The url path as an absolute path.
Returns The url path as an absolute path .