示例#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);
 }