public function isInCurrentDocument()
    {
        return (
            $this->mergedUri->getScheme() === $this->originUri->getScheme()
            &&
            $this->mergedUri->getHost() === $this->originUri->getHost()
            &&
            $this->mergedUri->getPort() === $this->originUri->getPort()
            &&
            $this->mergedUri->getPath() === $this->originUri->getPath()
            &&
            $this->mergedUri->getQuery() === $this->originUri->getQuery()
        );
    }
public function isInCurrentDocument()
    {
        return (
            $this->mergedUri->getScheme() === $this->originUri->getScheme()
            &&
            $this->mergedUri->getHost() === $this->originUri->getHost()
            &&
            $this->mergedUri->getPort() === $this->originUri->getPort()
            &&
            $this->mergedUri->getPath() === $this->originUri->getPath()
            &&
            $this->mergedUri->getQuery() === $this->originUri->getQuery()
        );
    }
public function isInCurrentDocument ( ) { return ( $ this -> mergedUri -> getScheme ( ) === $ this -> originUri -> getScheme ( ) && $ this -> mergedUri -> getHost ( ) === $ this -> originUri -> getHost ( ) && $ this -> mergedUri -> getPort ( ) === $ this -> originUri -> getPort ( ) && $ this -> mergedUri -> getPath ( ) === $ this -> originUri -> getPath ( ) && $ this -> mergedUri -> getQuery ( ) === $ this -> originUri -> getQuery ( ) ) ; }
Return true if reference and origin are in the same document

@return bool
Return true if reference and origin are in the same document