src/Entity/GuardianSurvey.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GuardianSurveyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=GuardianSurveyRepository::class)
  7. */
  8. class GuardianSurvey
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Guardian::class, inversedBy="guardianSurveys")
  18. */
  19. private $guardian;
  20. /**
  21. * @ORM\Column(type="datetime", nullable=true)
  22. */
  23. private $dateFor;
  24. /**
  25. * @ORM\Column(type="datetime", nullable=true)
  26. */
  27. private $createdAt;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=true)
  30. */
  31. private $updatedAt;
  32. /**
  33. * @ORM\Column(type="boolean", nullable=true,options={"default" : "0"})
  34. */
  35. private $submitted = false;
  36. public function __construct()
  37. {
  38. $this->createdAt = new \DateTime();
  39. }
  40. public function getId(): ?int
  41. {
  42. return $this->id;
  43. }
  44. public function getGuardian(): ?Guardian
  45. {
  46. return $this->guardian;
  47. }
  48. public function setGuardian(?Guardian $guardian): self
  49. {
  50. $this->guardian = $guardian;
  51. return $this;
  52. }
  53. public function getDateFor(): ?\DateTimeInterface
  54. {
  55. return $this->dateFor;
  56. }
  57. public function setDateFor(?\DateTimeInterface $dateFor): self
  58. {
  59. $this->dateFor = $dateFor;
  60. return $this;
  61. }
  62. public function getCreatedAt(): ?\DateTimeInterface
  63. {
  64. return $this->createdAt;
  65. }
  66. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  67. {
  68. $this->createdAt = $createdAt;
  69. return $this;
  70. }
  71. public function getUpdatedAt(): ?\DateTimeInterface
  72. {
  73. return $this->updatedAt;
  74. }
  75. public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  76. {
  77. $this->updatedAt = $updatedAt;
  78. return $this;
  79. }
  80. public function getSubmitted(): ?bool
  81. {
  82. return $this->submitted;
  83. }
  84. public function setSubmitted(?bool $submitted): self
  85. {
  86. $this->submitted = $submitted;
  87. return $this;
  88. }
  89. }