<?phpnamespace App\Entity;use App\Repository\TeacherSurveyResponseRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=TeacherSurveyResponseRepository::class) */class TeacherSurveyResponse{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Groups({"TeacherSurveyList"}) */ private $id; /** * @ORM\ManyToOne(targetEntity=Child::class, inversedBy="teacherSurveyResponses") */ private $child; /** * @ORM\ManyToOne(targetEntity=Discipline::class, inversedBy="teacherSurveyResponses") * @Groups({"TeacherSurveyList"}) */ private $discipline; /** * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherSurveyResponses") * @Groups({"TeacherSurveyList"}) */ private $teacher; /** * @ORM\Column(type="text", nullable=true) * @Groups({"TeacherSurveyList"}) */ private $comment; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateFor; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateFrom; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateTo; /** * @ORM\Column(type="datetime", nullable=true) * @Groups({"TeacherSurveyList"}) */ private $createdAt; /** * @ORM\Column(type="boolean", nullable=true) */ private $lastLesson = false; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getChild(): ?Child { return $this->child; } public function setChild(?Child $child): self { $this->child = $child; return $this; } public function getDiscipline(): ?Discipline { return $this->discipline; } public function setDiscipline(?Discipline $discipline): self { $this->discipline = $discipline; return $this; } public function getTeacher(): ?Teacher { return $this->teacher; } public function setTeacher(?Teacher $teacher): self { $this->teacher = $teacher; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getDateFor(): ?\DateTimeInterface { return $this->dateFor; } public function setDateFor(?\DateTimeInterface $dateFor): self { $this->dateFor = $dateFor; return $this; } public function getDateFrom(): ?\DateTimeInterface { return $this->dateFrom; } public function setDateFrom(?\DateTimeInterface $dateFrom): self { $this->dateFrom = $dateFrom; return $this; } public function getDateTo(): ?\DateTimeInterface { return $this->dateTo; } public function setDateTo(?\DateTimeInterface $dateTo): self { $this->dateTo = $dateTo; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function isLastLesson(): bool { return $this->lastLesson; } public function setLastLesson(bool $lastLesson): void { $this->lastLesson = $lastLesson; }}