public function equals(NumberSystem $comparedNumberSystem)
    {
        if ($this->getBase() !== $comparedNumberSystem->getBase() ||
            $this->getSymbolIndex() !== $comparedNumberSystem->getSymbolIndex()
        ) {
            return false;
        }

        return true;
    }
public function equals(NumberSystem $comparedNumberSystem)
    {
        if ($this->getBase() !== $comparedNumberSystem->getBase() ||
            $this->getSymbolIndex() !== $comparedNumberSystem->getSymbolIndex()
        ) {
            return false;
        }

        return true;
    }
public function equals ( NumberSystem $ comparedNumberSystem ) { if ( $ this -> getBase ( ) !== $ comparedNumberSystem -> getBase ( ) || $ this -> getSymbolIndex ( ) !== $ comparedNumberSystem -> getSymbolIndex ( ) ) { return false ; } return true ; }
Compare two number systems.

@param NumberSystem $comparedNumberSystem

@return bool
Compare two number systems .