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