src/Entity/Late.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\LateRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use JMS\Serializer\Annotation\Groups;
  7. #[ORM\HasLifecycleCallbacks]
  8. #[ORM\Entity(repositoryClassLateRepository::class)]
  9. class Late
  10. {
  11.     use Timestampable;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     #[Groups(['getLate'])]
  16.     private ?int $id null;
  17.     #[ORM\Column(length255)]
  18.     #[Groups(['getLate'])]
  19.     private ?string $startTime null;
  20.     #[ORM\Column(length255)]
  21.     #[Groups(['getLate'])]
  22.     private ?string $endTime null;
  23.     #[ORM\ManyToOne(inversedBy'lates'cascade: ["persist"])]
  24.     #[Groups(['getLate'])]
  25.     private ?Student $student null;
  26.     #[ORM\ManyToOne(inversedBy'lates'cascade: ["persist"])]
  27.     private ?SchoolYear $year null;
  28.     #[ORM\Column(length255)]
  29.     #[Groups(['getLate'])]
  30.     private ?string $lateDate null;
  31.     #[ORM\ManyToOne(inversedBy'lates'cascade: ["persist"])]
  32.     private ?User $author null;
  33.     #[ORM\ManyToOne(inversedBy'latesEdited'cascade: ["persist"])]
  34.     private ?User $editor null;
  35.     #[ORM\ManyToOne(inversedBy'lates'cascade: ["persist"])]
  36.     private ?School $school null;
  37.     #[ORM\ManyToOne(inversedBy'lates'cascade: ["persist"])]
  38.     #[ORM\JoinColumn(nullabletrue)]
  39.     private ?Exams $exam null;
  40.     #[ORM\ManyToOne(inversedBy'lates')]
  41.     private ?TheClass $classe null;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getStartTime(): ?string
  47.     {
  48.         return $this->startTime;
  49.     }
  50.     public function setStartTime(string $startTime): static
  51.     {
  52.         $this->startTime $startTime;
  53.         return $this;
  54.     }
  55.     public function getEndTime(): ?string
  56.     {
  57.         return $this->endTime;
  58.     }
  59.     public function setEndTime(string $endTime): static
  60.     {
  61.         $this->endTime $endTime;
  62.         return $this;
  63.     }
  64.     public function getStudent(): ?Student
  65.     {
  66.         return $this->student;
  67.     }
  68.     public function setStudent(?Student $student): static
  69.     {
  70.         $this->student $student;
  71.         return $this;
  72.     }
  73.     public function getYear(): ?SchoolYear
  74.     {
  75.         return $this->year;
  76.     }
  77.     public function setYear(?SchoolYear $year): static
  78.     {
  79.         $this->year $year;
  80.         return $this;
  81.     }
  82.     public function getLateDate(): ?string
  83.     {
  84.         return $this->lateDate;
  85.     }
  86.     public function setLateDate(string $lateDate): static
  87.     {
  88.         $this->lateDate $lateDate;
  89.         return $this;
  90.     }
  91.     public function getAuthor(): ?User
  92.     {
  93.         return $this->author;
  94.     }
  95.     public function setAuthor(?User $author): static
  96.     {
  97.         $this->author $author;
  98.         return $this;
  99.     }
  100.     public function getEditor(): ?User
  101.     {
  102.         return $this->editor;
  103.     }
  104.     public function setEditor(?User $editor): static
  105.     {
  106.         $this->editor $editor;
  107.         return $this;
  108.     }
  109.     public function getSchool(): ?School
  110.     {
  111.         return $this->school;
  112.     }
  113.     public function setSchool(?School $school): static
  114.     {
  115.         $this->school $school;
  116.         return $this;
  117.     }
  118.     public function getExam(): ?Exams
  119.     {
  120.         return $this->exam;
  121.     }
  122.     public function setExam(?Exams $exam): static
  123.     {
  124.         $this->exam $exam;
  125.         return $this;
  126.     }
  127.     public function getClasse(): ?TheClass
  128.     {
  129.         return $this->classe;
  130.     }
  131.     public function setClasse(?TheClass $classe): static
  132.     {
  133.         $this->classe $classe;
  134.         return $this;
  135.     }
  136. }