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.

81 lines
1.7KB

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