amount; } public function setAmount(?float $amount): self { $this->amount = $amount; return $this; } public function getAmountInherited(): float { if ($this->getOrderPayment() !== null) { return $this->getOrderPayment()->getAmount(); } else if ($this->getOrderRefund() !== null) { return $this->getOrderRefund()->getAmount(); } else { return $this->getAmount(); } } public function getMeanPaymentInherited(): string { if ($this->getOrderPayment() !== null) { return $this->getOrderPayment()->getMeanPayment(); } else if ($this->getOrderRefund() !== null) { return $this->getOrderRefund()->getMeanPayment(); } else { return $this->getMeanPayment(); } } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getUserMerchant(): ?UserMerchantInterface { return $this->userMerchant; } public function setUserMerchant(?UserMerchantInterface $userMerchant): self { $this->userMerchant = $userMerchant; return $this; } public function getOrderPayment(): ?OrderPaymentInterface { return $this->orderPayment; } public function setOrderPayment(?OrderPaymentInterface $orderPayment): self { $this->orderPayment = $orderPayment; return $this; } public function getOrderRefund(): ?OrderRefundInterface { return $this->orderRefund; } public function setOrderRefund(?OrderRefundInterface $orderRefund): self { $this->orderRefund = $orderRefund; return $this; } }