<?phpnamespace App\Entity;use App\Repository\GuardianSurveyRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=GuardianSurveyRepository::class) */class GuardianSurvey{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Guardian::class, inversedBy="guardianSurveys") */ private $guardian; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateFor; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\Column(type="boolean", nullable=true,options={"default" : "0"}) */ private $submitted = false; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getGuardian(): ?Guardian { return $this->guardian; } public function setGuardian(?Guardian $guardian): self { $this->guardian = $guardian; return $this; } public function getDateFor(): ?\DateTimeInterface { return $this->dateFor; } public function setDateFor(?\DateTimeInterface $dateFor): self { $this->dateFor = $dateFor; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getSubmitted(): ?bool { return $this->submitted; } public function setSubmitted(?bool $submitted): self { $this->submitted = $submitted; return $this; }}