Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

OrderRefundModel.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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, OrderRefundInterface
  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. }