57 lines
1.2KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\ShopBundle\Context\OrderPaymentInterface;
  5. use Lc\ShopBundle\Context\ReductionInterface;
  6. /**
  7. * @ORM\MappedSuperclass()
  8. */
  9. trait OrderPayoffTrait
  10. {
  11. use PayoffTrait;
  12. /**
  13. * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\OrderShopInterface", inversedBy="orderPayments")
  14. * @ORM\JoinColumn(nullable=false)
  15. */
  16. protected $orderShop;
  17. /**
  18. * @ORM\Column(type="boolean")
  19. */
  20. protected $editable;
  21. public function getOrderShop(): ?OrderShop
  22. {
  23. return $this->orderShop;
  24. }
  25. public function setOrderShop(?OrderShop $orderShop): self
  26. {
  27. $this->orderShop = $orderShop;
  28. return $this;
  29. }
  30. public function setEditable(bool $editable): self
  31. {
  32. $this->editable = $editable;
  33. return $this;
  34. }
  35. public function getEditable(): ?bool
  36. {
  37. return $this->editable;
  38. }
  39. public function isEditable(): ?bool
  40. {
  41. return $this->editable;
  42. }
  43. }