No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

PointSaleSectionModel.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. }