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.

55 lines
1.3KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Ticket;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
  5. use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
  6. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  7. use Lc\SovBundle\Model\Ticket\TicketModel as SovTicketModel;
  8. /**
  9. * @ORM\MappedSuperclass()
  10. */
  11. abstract class TicketModel extends SovTicketModel implements FilterMerchantInterface
  12. {
  13. const TYPE_PRODUCT_UNAVAILABLE = 'product-unavailable';
  14. const TYPE_PRODUCT_ERROR = 'product-error';
  15. /**
  16. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="pages")
  17. * @ORM\JoinColumn(nullable=false)
  18. */
  19. protected $section;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Order\OrderShopInterface", inversedBy="tickets")
  22. */
  23. protected $orderShop;
  24. public function getSection(): SectionInterface
  25. {
  26. return $this->section;
  27. }
  28. public function setSection(SectionInterface $section): self
  29. {
  30. $this->section = $section;
  31. return $this;
  32. }
  33. public function getOrderShop(): OrderShopInterface
  34. {
  35. return $this->orderShop;
  36. }
  37. public function setOrderShop(OrderShopInterface $orderShop): self
  38. {
  39. $this->orderShop = $orderShop;
  40. return $this;
  41. }
  42. }