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

        return $this->getCode()->toNative() == $currency->getCode()->toNative();
    }
public function sameValueAs(ValueObjectInterface $currency)
    {
        if (false === Util::classEquals($this, $currency)) {
            return false;
        }

        return $this->getCode()->toNative() == $currency->getCode()->toNative();
    }
public function sameValueAs ( ValueObjectInterface $ currency ) { if ( false === Util :: classEquals ( $ this , $ currency ) ) { return false ; } return $ this -> getCode ( ) -> toNative ( ) == $ currency -> getCode ( ) -> toNative ( ) ; }
Tells whether two Currency are equal by comparing their names

@param  ValueObjectInterface $currency
@return bool
Tells whether two Currency are equal by comparing their names