src/CurrencyPair.php
public function equals(CurrencyPair $other)
    {
        return
            $this->baseCurrency->equals($other->baseCurrency)
            && $this->counterCurrency->equals($other->counterCurrency)
            && $this->conversionRatio === $other->conversionRatio
        ;
    }
public function equals(CurrencyPair $other)
    {
        return
            $this->baseCurrency->equals($other->baseCurrency)
            && $this->counterCurrency->equals($other->counterCurrency)
            && $this->conversionRatio === $other->conversionRatio
        ;
    }
public function equals ( CurrencyPair $ other ) { return $ this -> baseCurrency -> equals ( $ other -> baseCurrency ) && $ this -> counterCurrency -> equals ( $ other -> counterCurrency ) && $ this -> conversionRatio === $ other -> conversionRatio ; }
Checks if an other CurrencyPair has the same parameters as this.

@param CurrencyPair $other

@return bool
Checks if an other CurrencyPair has the same parameters as this .