src/Entity/ChildVacation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChildVacationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ChildVacationRepository::class)
  7. */
  8. class ChildVacation
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Child::class, inversedBy="childVacations")
  18. */
  19. private $child;
  20. /**
  21. * @ORM\Column(type="date", nullable=true)
  22. */
  23. private $dateFrom;
  24. /**
  25. * @ORM\Column(type="date", nullable=true)
  26. */
  27. private $dateTo;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=true)
  30. */
  31. private $dateAdd;
  32. /**
  33. * @ORM\ManyToOne(targetEntity=Admin::class)
  34. */
  35. private $addedByAdmin;
  36. /**
  37. * @ORM\Column(type="boolean", nullable=true)
  38. */
  39. private $isDeleted;
  40. /**
  41. * @ORM\Column(type="json", nullable=true)
  42. */
  43. private $disciplineIds;
  44. public function getId(): ?int
  45. {
  46. return $this->id;
  47. }
  48. public function getChild(): ?Child
  49. {
  50. return $this->child;
  51. }
  52. public function setChild(?Child $child): self
  53. {
  54. $this->child = $child;
  55. return $this;
  56. }
  57. public function getDateFrom(): ?\DateTimeInterface
  58. {
  59. return $this->dateFrom;
  60. }
  61. public function setDateFrom(?\DateTimeInterface $dateFrom): self
  62. {
  63. $this->dateFrom = $dateFrom;
  64. return $this;
  65. }
  66. public function getDateTo(): ?\DateTimeInterface
  67. {
  68. return $this->dateTo;
  69. }
  70. public function setDateTo(?\DateTimeInterface $dateTo): self
  71. {
  72. $this->dateTo = $dateTo;
  73. return $this;
  74. }
  75. public function getDateAdd(): ?\DateTimeInterface
  76. {
  77. return $this->dateAdd;
  78. }
  79. public function setDateAdd(?\DateTimeInterface $dateAdd): self
  80. {
  81. $this->dateAdd = $dateAdd;
  82. return $this;
  83. }
  84. public function getAddedByAdmin(): ?Admin
  85. {
  86. return $this->addedByAdmin;
  87. }
  88. public function setAddedByAdmin(?Admin $addedByAdmin): self
  89. {
  90. $this->addedByAdmin = $addedByAdmin;
  91. return $this;
  92. }
  93. public function isIsDeleted(): ?bool
  94. {
  95. return $this->isDeleted;
  96. }
  97. public function setIsDeleted(?bool $isDeleted): self
  98. {
  99. $this->isDeleted = $isDeleted;
  100. return $this;
  101. }
  102. /**
  103. * @return array|null
  104. */
  105. public function getDisciplineIds(): ?array
  106. {
  107. return $this->disciplineIds;
  108. }
  109. /**
  110. * @param array|null $disciplineIds
  111. * @return self
  112. */
  113. public function setDisciplineIds(?array $disciplineIds): self
  114. {
  115. $this->disciplineIds = $disciplineIds;
  116. return $this;
  117. }
  118. }