3 declare(strict_types=1);
29 private $discountedAmount;
35 private $includedDiscounts;
41 private $discountedNetAmount;
47 private $discountedGrossAmount;
57 return $this->discountedAmount instanceof
TypedMoneyBuilder ? $this->discountedAmount->
build() : $this->discountedAmount;
68 return $this->includedDiscounts;
80 return $this->discountedNetAmount instanceof
TypedMoneyBuilder ? $this->discountedNetAmount->
build() : $this->discountedNetAmount;
92 return $this->discountedGrossAmount instanceof
TypedMoneyBuilder ? $this->discountedGrossAmount->
build() : $this->discountedGrossAmount;
101 $this->discountedAmount = $discountedAmount;
112 $this->includedDiscounts = $includedDiscounts;
123 $this->discountedNetAmount = $discountedNetAmount;
134 $this->discountedGrossAmount = $discountedGrossAmount;
145 $this->discountedAmount = $discountedAmount;
156 $this->discountedNetAmount = $discountedNetAmount;
167 $this->discountedGrossAmount = $discountedGrossAmount;
175 $this->discountedAmount instanceof
TypedMoneyBuilder ? $this->discountedAmount->
build() : $this->discountedAmount,
176 $this->includedDiscounts,
177 $this->discountedNetAmount instanceof
TypedMoneyBuilder ? $this->discountedNetAmount->
build() : $this->discountedNetAmount,
178 $this->discountedGrossAmount instanceof
TypedMoneyBuilder ? $this->discountedGrossAmount->
build() : $this->discountedGrossAmount