src/Entity/TeacherSickLeaves.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherSickLeavesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=TeacherSickLeavesRepository::class)
  8. */
  9. class TeacherSickLeaves
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. * @Groups({"TeacherSickLeavesList"})
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="datetime", nullable=true)
  20. * @Groups({"TeacherSickLeavesList"})
  21. */
  22. private $dateStart;
  23. /**
  24. * @ORM\Column(type="datetime", nullable=true)
  25. * @Groups({"TeacherSickLeavesList"})
  26. */
  27. private $dateEnd;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherSickLeaves")
  30. * @Groups({"TeacherSickLeavesList"})
  31. */
  32. private $teacher;
  33. /**
  34. * @ORM\Column(type="string", length=255, nullable=true)
  35. */
  36. private $filename;
  37. /**
  38. * @ORM\Column(type="string", length=255, nullable=true)
  39. * @Groups({"TeacherSickLeavesList"})
  40. */
  41. private $filePath;
  42. /**
  43. * @ORM\Column(type="datetime", nullable=true)
  44. * @Groups({"TeacherSickLeavesList"})
  45. */
  46. private $dateAdd;
  47. /**
  48. * @ORM\Column(type="boolean", nullable=true)
  49. * @Groups({"TeacherSickLeavesList"})
  50. */
  51. private $missed;
  52. /**
  53. * @ORM\Column(type="boolean", nullable=true)
  54. * @Groups({"TeacherSickLeavesList"})
  55. */
  56. private $approved;
  57. public function __construct()
  58. {
  59. $this->dateAdd = new \DateTime();
  60. }
  61. public function getId(): ?int
  62. {
  63. return $this->id;
  64. }
  65. public function getDateStart(): ?\DateTimeInterface
  66. {
  67. return $this->dateStart;
  68. }
  69. public function setDateStart(?\DateTimeInterface $dateStart): self
  70. {
  71. $this->dateStart = $dateStart;
  72. return $this;
  73. }
  74. public function getDateEnd(): ?\DateTimeInterface
  75. {
  76. return $this->dateEnd;
  77. }
  78. public function setDateEnd(?\DateTimeInterface $dateEnd): self
  79. {
  80. $this->dateEnd = $dateEnd;
  81. return $this;
  82. }
  83. public function getTeacher(): ?Teacher
  84. {
  85. return $this->teacher;
  86. }
  87. public function setTeacher(?Teacher $teacher): self
  88. {
  89. $this->teacher = $teacher;
  90. return $this;
  91. }
  92. public function getFilename(): ?string
  93. {
  94. return $this->filename;
  95. }
  96. public function setFilename(?string $filename): self
  97. {
  98. $this->filename = $filename;
  99. return $this;
  100. }
  101. public function getFilePath(): ?string
  102. {
  103. return $this->filePath;
  104. }
  105. public function setFilePath(?string $filePath): self
  106. {
  107. $this->filePath = $filePath;
  108. return $this;
  109. }
  110. public function getDateAdd(): ?\DateTimeInterface
  111. {
  112. return $this->dateAdd;
  113. }
  114. public function setDateAdd(?\DateTimeInterface $dateAdd): self
  115. {
  116. $this->dateAdd = $dateAdd;
  117. return $this;
  118. }
  119. public function isMissed(): ?bool
  120. {
  121. return $this->missed;
  122. }
  123. public function setMissed(?bool $missed): self
  124. {
  125. $this->missed = $missed;
  126. return $this;
  127. }
  128. public function isApproved(): ?bool
  129. {
  130. return $this->approved;
  131. }
  132. public function setApproved(?bool $approved): self
  133. {
  134. $this->approved = $approved;
  135. return $this;
  136. }
  137. }