src/Url.php
public function equals(UrlInterface $url): bool
    {
        return $this->getScheme()->equals($url->getScheme()) && $this->getHost()->equals($url->getHost()) && $this->getPort() === $url->getPort() && $this->getPath()->equals($url->getPath()) && $this->getQueryString() === $url->getQueryString() && $this->getFragment() === $url->getFragment();
    }
public function equals(UrlInterface $url): bool
    {
        return $this->getScheme()->equals($url->getScheme()) && $this->getHost()->equals($url->getHost()) && $this->getPort() === $url->getPort() && $this->getPath()->equals($url->getPath()) && $this->getQueryString() === $url->getQueryString() && $this->getFragment() === $url->getFragment();
    }
public function equals ( UrlInterface $ url ) : bool { return $ this -> getScheme ( ) -> equals ( $ url -> getScheme ( ) ) && $ this -> getHost ( ) -> equals ( $ url -> getHost ( ) ) && $ this -> getPort ( ) === $ url -> getPort ( ) && $ this -> getPath ( ) -> equals ( $ url -> getPath ( ) ) && $ this -> getQueryString ( ) === $ url -> getQueryString ( ) && $ this -> getFragment ( ) === $ url -> getFragment ( ) ; }
Returns true if the url equals other url, false otherwise.

@since 1.2.0

@param UrlInterface $url The other url.

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