/** * Returns the currency code of the monetary value represented by this * object. * * @return string */ public function getCurrencyCode() { return $this->currency->getCurrencyCode(); }
/** * @covers \NetglueMoney\Money\Currency::getCurrencyCode * @depends testObjectCanBeConstructedForValidConstructorArgument */ public function testCurrencyCodeCanBeRetrieved(Currency $c) { $this->assertEquals('EUR', $c->getCurrencyCode()); }