Dumplie\SharedKernel\Domain\Money\Price::currency PHP Метод

currency() публичный Метод

public currency ( ) : string
Результат string
    public function currency() : string
    {
        return mb_strtoupper($this->currency);
    }

Usage Example

Пример #1
0
 /**
  * @param Price $price
  *
  * @return bool
  */
 public function hasSameCurrency(Price $price) : bool
 {
     return $price->currency() === $this->currency();
 }