Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

OrderPayoffTrait.php 1.2KB

pirms 4 gadiem
pirms 4 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. }