You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 satır
1.3KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Order;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\OrderPayoffInterface;
  5. use Lc\CaracoleBundle\Doctrine\Extension\OrderPayoffTrait;
  6. use Lc\CaracoleBundle\Model\File\DocumentInterface;
  7. use Lc\SovBundle\Doctrine\Pattern\AbstractLightEntity;
  8. /**
  9. * @ORM\MappedSuperclass()
  10. */
  11. abstract class OrderRefundModel extends AbstractLightEntity implements OrderPayoffInterface
  12. {
  13. use OrderPayoffTrait;
  14. /**
  15. * @ORM\Column(type="float", nullable=true)
  16. */
  17. protected $deliveryRefundAmount;
  18. /**
  19. * @ORM\OneToOne(targetEntity="Lc\CaracoleBundle\Model\File\DocumentInterface", inversedBy="orderRefund", cascade={"persist", "remove"})
  20. * @ORM\JoinColumn(nullable=false)
  21. */
  22. protected $document;
  23. public function getDeliveryRefundAmount(): ?float
  24. {
  25. return $this->deliveryRefundAmount;
  26. }
  27. public function setDeliveryRefundAmount(?float $deliveryRefundAmount): self
  28. {
  29. $this->deliveryRefundAmount = $deliveryRefundAmount;
  30. return $this;
  31. }
  32. public function getDocument(): ?DocumentInterface
  33. {
  34. return $this->document;
  35. }
  36. public function setDocument(DocumentInterface $document): self
  37. {
  38. $this->document = $document;
  39. return $this;
  40. }
  41. }