src/UrlPath.php
public function equals(UrlPathInterface $urlPath): bool
    {
        return $this->isAbsolute() === $urlPath->isAbsolute() && $this->getDirectoryParts() === $urlPath->getDirectoryParts() && $this->getFilename() === $urlPath->getFilename();
    }
public function equals(UrlPathInterface $urlPath): bool
    {
        return $this->isAbsolute() === $urlPath->isAbsolute() && $this->getDirectoryParts() === $urlPath->getDirectoryParts() && $this->getFilename() === $urlPath->getFilename();
    }
public function equals ( UrlPathInterface $ urlPath ) : bool { return $ this -> isAbsolute ( ) === $ urlPath -> isAbsolute ( ) && $ this -> getDirectoryParts ( ) === $ urlPath -> getDirectoryParts ( ) && $ this -> getFilename ( ) === $ urlPath -> getFilename ( ) ; }
Returns true if the url path equals other url path, false otherwise.

@since 1.2.0

@param UrlPathInterface $urlPath The other url path.

@return bool True if the url path equals other url path, false otherwise.
Returns true if the url path equals other url path false otherwise .