<?phpnamespace App\Entity;use App\Repository\ChildPreferenceDeclineHistoryRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=ChildPreferenceDeclineHistoryRepository::class) */class ChildPreferenceDeclineHistory{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Groups({"DeclineHistoryList"}) */ private $id; /** * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="childPreferenceDeclineHistories") * @Groups({"DeclineHistoryList"}) */ private $teacher; /** * @ORM\ManyToOne(targetEntity=Discipline::class, inversedBy="childPreferenceDeclineHistories") * @Groups({"DeclineHistoryList"}) */ private $discipline; /** * @ORM\ManyToOne(targetEntity=Child::class) * @Groups({"DeclineHistoryList"}) */ private $child; /** * @ORM\Column(type="datetime", nullable=true) * @Groups({"DeclineHistoryList"}) */ private $assignedAt; /** * @ORM\Column(type="datetime", nullable=true) * @Groups({"DeclineHistoryList"}) */ private $declinedAt; /** * @ORM\Column(type="text", nullable=true) * @Groups({"DeclineHistoryList"}) */ private $declineReason; public function getId(): ?int { return $this->id; } public function getTeacher(): ?Teacher { return $this->teacher; } public function setTeacher(?Teacher $teacher): self { $this->teacher = $teacher; return $this; } public function getDiscipline(): ?Discipline { return $this->discipline; } public function setDiscipline(?Discipline $discipline): self { $this->discipline = $discipline; return $this; } public function getChild(): ?Child { return $this->child; } public function setChild(?Child $child): self { $this->child = $child; return $this; } public function getAssignedAt(): ?\DateTimeInterface { return $this->assignedAt; } public function setAssignedAt(?\DateTimeInterface $assignedAt): self { $this->assignedAt = $assignedAt; return $this; } public function getDeclinedAt(): ?\DateTimeInterface { return $this->declinedAt; } public function setDeclinedAt(?\DateTimeInterface $declinedAt): self { $this->declinedAt = $declinedAt; return $this; } public function getDeclineReason(): ?string { return $this->declineReason; } public function setDeclineReason(?string $declineReason): self { $this->declineReason = $declineReason; return $this; }}