Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

82 lines
1.5KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\PointSale;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\Pattern\AbstractLightEntity;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class PointSaleDayInfoModel extends AbstractLightEntity
  9. {
  10. /**
  11. * @ORM\Column(type="boolean")
  12. */
  13. protected $active;
  14. /**
  15. * @ORM\Column(type="smallint")
  16. */
  17. protected $day;
  18. /**
  19. * @ORM\Column(type="text", nullable=true)
  20. */
  21. protected $description;
  22. /**
  23. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\PointSale\PointSaleInterface", inversedBy="pointSaleDayInfos")
  24. * @ORM\JoinColumn(nullable=false)
  25. */
  26. protected $pointSale;
  27. public function getActive(): ?bool
  28. {
  29. return $this->active;
  30. }
  31. public function setActive(bool $active): self
  32. {
  33. $this->active = $active;
  34. return $this;
  35. }
  36. public function getDay(): ?int
  37. {
  38. return $this->day;
  39. }
  40. public function setDay(int $day): self
  41. {
  42. $this->day = $day;
  43. return $this;
  44. }
  45. public function getDescription(): ?string
  46. {
  47. return $this->description;
  48. }
  49. public function setDescription(?string $description): self
  50. {
  51. $this->description = $description;
  52. return $this;
  53. }
  54. public function getPointSale(): ?PointSaleInterface
  55. {
  56. return $this->pointSale;
  57. }
  58. public function setPointSale(?PointSaleInterface $pointSale): self
  59. {
  60. $this->pointSale = $pointSale;
  61. return $this;
  62. }
  63. }