Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

69 linhas
1.6KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\PointSale;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\OrderAmountMinTrait;
  5. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  6. use Lc\SovBundle\Doctrine\EntityInterface;
  7. /**
  8. * @ORM\MappedSuperclass()
  9. */
  10. abstract class PointSaleSectionModel implements EntityInterface, PointSaleSectionInterface
  11. {
  12. /**
  13. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="pointSaleSections")
  14. * @ORM\JoinColumn(nullable=false)
  15. */
  16. protected $section;
  17. /**
  18. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\PointSale\PointSaleInterface", inversedBy="pointSaleSections")
  19. * @ORM\JoinColumn(nullable=false)
  20. */
  21. protected $pointSale;
  22. /**
  23. * @ORM\Column(type="float", nullable=true)
  24. */
  25. protected $orderAmountMin;
  26. public function getSection(): SectionInterface
  27. {
  28. return $this->section;
  29. }
  30. public function setSection(SectionInterface $section): self
  31. {
  32. $this->section = $section;
  33. return $this;
  34. }
  35. public function getPointSale(): PointSaleInterface
  36. {
  37. return $this->pointSale;
  38. }
  39. public function setPointSale(PointSaleInterface $pointSale): self
  40. {
  41. $this->pointSale = $pointSale;
  42. return $this;
  43. }
  44. public function getOrderAmountMin(): ?float
  45. {
  46. return $this->orderAmountMin;
  47. }
  48. public function setOrderAmountMin(?float $orderAmountMin): self
  49. {
  50. $this->orderAmountMin = $orderAmountMin;
  51. return $this;
  52. }
  53. }