Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

PointSaleDayInfoModel.php 1.5KB

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