src/Entity/AttendanceMissed.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AttendanceMissedRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassAttendanceMissedRepository::class)]
  7. class AttendanceMissed
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  14.     private ?\DateTimeInterface $missedDate null;
  15.     #[ORM\ManyToOne(inversedBy'attendanceMisseds')]
  16.     #[ORM\JoinColumn(nullablefalseonDelete'CASCADE')]
  17.     private ?AgendaElement $agendaElement null;
  18.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  19.     private ?\DateTimeInterface $statrtAt null;
  20.     #[ORM\Column(typeTypes::TIME_MUTABLEnullabletrue)]
  21.     private ?\DateTimeInterface $endAt null;
  22.     #[ORM\ManyToOne(inversedBy'attendanceMisseds')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?SchoolYear $year null;
  25.     #[ORM\ManyToOne(inversedBy'attendanceMisseds')]
  26.     #[ORM\JoinColumn(nullablefalse)]
  27.     private ?School $school null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getMissedDate(): ?\DateTimeInterface
  33.     {
  34.         return $this->missedDate;
  35.     }
  36.     public function setMissedDate(\DateTimeInterface $missedDate): static
  37.     {
  38.         $this->missedDate $missedDate;
  39.         return $this;
  40.     }
  41.     public function getAgendaElement(): ?AgendaElement
  42.     {
  43.         return $this->agendaElement;
  44.     }
  45.     public function setAgendaElement(?AgendaElement $agendaElement): static
  46.     {
  47.         $this->agendaElement $agendaElement;
  48.         return $this;
  49.     }
  50.     public function getStatrtAt(): ?\DateTimeInterface
  51.     {
  52.         return $this->statrtAt;
  53.     }
  54.     public function setStatrtAt(\DateTimeInterface $statrtAt): static
  55.     {
  56.         $this->statrtAt $statrtAt;
  57.         return $this;
  58.     }
  59.     public function getEndAt(): ?\DateTimeInterface
  60.     {
  61.         return $this->endAt;
  62.     }
  63.     public function setEndAt(?\DateTimeInterface $endAt): static
  64.     {
  65.         $this->endAt $endAt;
  66.         return $this;
  67.     }
  68.     public function getYear(): ?SchoolYear
  69.     {
  70.         return $this->year;
  71.     }
  72.     public function setYear(?SchoolYear $year): static
  73.     {
  74.         $this->year $year;
  75.         return $this;
  76.     }
  77.     public function getSchool(): ?School
  78.     {
  79.         return $this->school;
  80.     }
  81.     public function setSchool(?School $school): static
  82.     {
  83.         $this->school $school;
  84.         return $this;
  85.     }
  86. }