src/Entity/ChildPreferenceDeclineHistory.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChildPreferenceDeclineHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=ChildPreferenceDeclineHistoryRepository::class)
  8. */
  9. class ChildPreferenceDeclineHistory
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. * @Groups({"DeclineHistoryList"})
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="childPreferenceDeclineHistories")
  20. * @Groups({"DeclineHistoryList"})
  21. */
  22. private $teacher;
  23. /**
  24. * @ORM\ManyToOne(targetEntity=Discipline::class, inversedBy="childPreferenceDeclineHistories")
  25. * @Groups({"DeclineHistoryList"})
  26. */
  27. private $discipline;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=Child::class)
  30. * @Groups({"DeclineHistoryList"})
  31. */
  32. private $child;
  33. /**
  34. * @ORM\Column(type="datetime", nullable=true)
  35. * @Groups({"DeclineHistoryList"})
  36. */
  37. private $assignedAt;
  38. /**
  39. * @ORM\Column(type="datetime", nullable=true)
  40. * @Groups({"DeclineHistoryList"})
  41. */
  42. private $declinedAt;
  43. /**
  44. * @ORM\Column(type="text", nullable=true)
  45. * @Groups({"DeclineHistoryList"})
  46. */
  47. private $declineReason;
  48. public function getId(): ?int
  49. {
  50. return $this->id;
  51. }
  52. public function getTeacher(): ?Teacher
  53. {
  54. return $this->teacher;
  55. }
  56. public function setTeacher(?Teacher $teacher): self
  57. {
  58. $this->teacher = $teacher;
  59. return $this;
  60. }
  61. public function getDiscipline(): ?Discipline
  62. {
  63. return $this->discipline;
  64. }
  65. public function setDiscipline(?Discipline $discipline): self
  66. {
  67. $this->discipline = $discipline;
  68. return $this;
  69. }
  70. public function getChild(): ?Child
  71. {
  72. return $this->child;
  73. }
  74. public function setChild(?Child $child): self
  75. {
  76. $this->child = $child;
  77. return $this;
  78. }
  79. public function getAssignedAt(): ?\DateTimeInterface
  80. {
  81. return $this->assignedAt;
  82. }
  83. public function setAssignedAt(?\DateTimeInterface $assignedAt): self
  84. {
  85. $this->assignedAt = $assignedAt;
  86. return $this;
  87. }
  88. public function getDeclinedAt(): ?\DateTimeInterface
  89. {
  90. return $this->declinedAt;
  91. }
  92. public function setDeclinedAt(?\DateTimeInterface $declinedAt): self
  93. {
  94. $this->declinedAt = $declinedAt;
  95. return $this;
  96. }
  97. public function getDeclineReason(): ?string
  98. {
  99. return $this->declineReason;
  100. }
  101. public function setDeclineReason(?string $declineReason): self
  102. {
  103. $this->declineReason = $declineReason;
  104. return $this;
  105. }
  106. }