Пример #1
0
 /**
  * @return int|null
  */
 public function getAmountForSerialization()
 {
     if ($this->amount instanceof MoneyInterface) {
         return $this->amount->getValueWithoutSeparation(2);
     }
     return $this->amount;
 }
Пример #2
0
 /**
  * @return int
  */
 public function getUnitPriceForSerialization()
 {
     return $this->unitPrice->getValueWithoutSeparation(2);
 }
Пример #3
0
 /**
  * @return int
  */
 public function getTotalAmountForSerialization()
 {
     return $this->totalAmount->getValueWithoutSeparation(2);
 }