src/UrlPath.php
public function withUrlPath(UrlPathInterface $urlPath): UrlPathInterface
    {
        if (!$this->myCombine($urlPath, $isAbsolute, $aboveBaseLevel, $directoryParts, $filename, $error)) {
            throw new UrlPathLogicException('Url path "' . $this->__toString() . '" can not be combined with url path "' . $urlPath->__toString() . '": ' . $error);
        }

        return new self($isAbsolute, $aboveBaseLevel, $directoryParts, $filename);
    }
public function withUrlPath(UrlPathInterface $urlPath): UrlPathInterface
    {
        if (!$this->myCombine($urlPath, $isAbsolute, $aboveBaseLevel, $directoryParts, $filename, $error)) {
            throw new UrlPathLogicException('Url path "' . $this->__toString() . '" can not be combined with url path "' . $urlPath->__toString() . '": ' . $error);
        }

        return new self($isAbsolute, $aboveBaseLevel, $directoryParts, $filename);
    }
public function withUrlPath ( UrlPathInterface $ urlPath ) : UrlPathInterface { if ( ! $ this -> myCombine ( $ urlPath , $ isAbsolute , $ aboveBaseLevel , $ directoryParts , $ filename , $ error ) ) { throw new UrlPathLogicException ( 'Url path "' . $ this -> __toString ( ) . '" can not be combined with url path "' . $ urlPath -> __toString ( ) . '": ' . $ error ) ; } return new self ( $ isAbsolute , $ aboveBaseLevel , $ directoryParts , $ filename ) ; }
Returns a copy of the url path combined with another url path.

@since 1.0.0

@param UrlPathInterface $urlPath The other url path.

@throws UrlPathLogicException if the url paths could not be combined.

@return UrlPathInterface The combined url path.
Returns a copy of the url path combined with another url path .