public function sameValueAs(ValueObjectInterface $url)
    {
        if (false === Util::classEquals($this, $url)) {
            return false;
        }

        return $this->getScheme()->sameValueAs($url->getScheme()) &&
               $this->getUser()->sameValueAs($url->getUser()) &&
               $this->getPassword()->sameValueAs($url->getPassword()) &&
               $this->getDomain()->sameValueAs($url->getDomain()) &&
               $this->getPath()->sameValueAs($url->getPath()) &&
               $this->getPort()->sameValueAs($url->getPort()) &&
               $this->getQueryString()->sameValueAs($url->getQueryString()) &&
               $this->getFragmentIdentifier()->sameValueAs($url->getFragmentIdentifier())
        ;
    }
public function sameValueAs(ValueObjectInterface $url)
    {
        if (false === Util::classEquals($this, $url)) {
            return false;
        }

        return $this->getScheme()->sameValueAs($url->getScheme()) &&
               $this->getUser()->sameValueAs($url->getUser()) &&
               $this->getPassword()->sameValueAs($url->getPassword()) &&
               $this->getDomain()->sameValueAs($url->getDomain()) &&
               $this->getPath()->sameValueAs($url->getPath()) &&
               $this->getPort()->sameValueAs($url->getPort()) &&
               $this->getQueryString()->sameValueAs($url->getQueryString()) &&
               $this->getFragmentIdentifier()->sameValueAs($url->getFragmentIdentifier())
        ;
    }
public function sameValueAs ( ValueObjectInterface $ url ) { if ( false === Util :: classEquals ( $ this , $ url ) ) { return false ; } return $ this -> getScheme ( ) -> sameValueAs ( $ url -> getScheme ( ) ) && $ this -> getUser ( ) -> sameValueAs ( $ url -> getUser ( ) ) && $ this -> getPassword ( ) -> sameValueAs ( $ url -> getPassword ( ) ) && $ this -> getDomain ( ) -> sameValueAs ( $ url -> getDomain ( ) ) && $ this -> getPath ( ) -> sameValueAs ( $ url -> getPath ( ) ) && $ this -> getPort ( ) -> sameValueAs ( $ url -> getPort ( ) ) && $ this -> getQueryString ( ) -> sameValueAs ( $ url -> getQueryString ( ) ) && $ this -> getFragmentIdentifier ( ) -> sameValueAs ( $ url -> getFragmentIdentifier ( ) ) ; }
Tells whether two Url are sameValueAs by comparing their components

@param  ValueObjectInterface $url
@return bool
Tells whether two Url are sameValueAs by comparing their components