src/Entity/ExamTimeTable.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ExamTimeTableRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\DBAL\Types\Types;
  6. #[ORM\Entity(repositoryClassExamTimeTableRepository::class)]
  7. class ExamTimeTable
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.    
  14.     #[ORM\Column(length255)]
  15.     private ?string $title null;
  16.   
  17.     #[ORM\ManyToOne(inversedBy'timeTables')]
  18.     private ?User $prof null;
  19.     #[ORM\Column]
  20.     private ?int $dayOfWeek null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  22.     private ?\DateTimeInterface $startTime null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  24.     private ?\DateTimeInterface $endTime null;
  25.     #[ORM\ManyToOne(inversedBy'timeTables')]
  26.     private ?Subject $subject null;
  27.     #[ORM\ManyToOne(inversedBy'timeTableYear')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?SchoolYear $year null;
  30.     #[ORM\ManyToOne(inversedBy'TimeTableClasse')]
  31.     #[ORM\JoinColumn(nullabletrue)]
  32.     private ?TheClass $classe null;
  33.     #[ORM\ManyToOne(inversedBy'examTimeTables')]
  34.     private ?TimeTableClass $parent null;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getTitle(): ?string
  40.     {
  41.         return $this->title;
  42.     }
  43.     public function setTitle(string $title): static
  44.     {
  45.         $this->title $title;
  46.         return $this;
  47.     }
  48.     public function getProf(): ?User
  49.     {
  50.         return $this->prof;
  51.     }
  52.     public function setProf(?User $prof): static
  53.     {
  54.         $this->prof $prof;
  55.         return $this;
  56.     }
  57.     public function getDayOfWeek(): ?int
  58.     {
  59.         return $this->dayOfWeek;
  60.     }
  61.     public function setDayOfWeek(int $dayOfWeek): static
  62.     {
  63.         $this->dayOfWeek $dayOfWeek;
  64.         return $this;
  65.     }
  66.     public function getStartTime(): ?\DateTimeInterface
  67.     {
  68.         return $this->startTime;
  69.     }
  70.     public function setStartTime(\DateTimeInterface $startTime): static
  71.     {
  72.         $this->startTime $startTime;
  73.         return $this;
  74.     }
  75.     public function getEndTime(): ?\DateTimeInterface
  76.     {
  77.         return $this->endTime;
  78.     }
  79.     public function setEndTime(\DateTimeInterface $endTime): static
  80.     {
  81.         $this->endTime $endTime;
  82.         return $this;
  83.     }
  84.     public function getSubject(): ?Subject
  85.     {
  86.         return $this->subject;
  87.     }
  88.     public function setSubject(?Subject $subject): static
  89.     {
  90.         $this->subject $subject;
  91.         return $this;
  92.     }
  93.     public function getYear(): ?SchoolYear
  94.     {
  95.         return $this->year;
  96.     }
  97.     public function setYear(?SchoolYear $year): static
  98.     {
  99.         $this->year $year;
  100.         return $this;
  101.     }
  102.     public function getClasse(): ?TheClass
  103.     {
  104.         return $this->classe;
  105.     }
  106.     public function setClasse(?TheClass $classe): static
  107.     {
  108.         $this->classe $classe;
  109.         return $this;
  110.     }
  111.     public function getParent(): ?TimeTableClass
  112.     {
  113.         return $this->parent;
  114.     }
  115.     public function setParent(?TimeTableClass $parent): static
  116.     {
  117.         $this->parent $parent;
  118.         return $this;
  119.     }
  120. }