src/Entity/ProfTime.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\ProfTimeRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\HasLifecycleCallbacks]
  8. #[ORM\Entity(repositoryClassProfTimeRepository::class)]
  9. class ProfTime
  10. {
  11.     use Timestampable;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  17.     private ?\DateTimeInterface $startTime null;
  18.     #[ORM\Column(typeTypes::TIME_MUTABLEnullabletrue)]
  19.     private ?\DateTimeInterface $endTime null;
  20.     #[ORM\ManyToOne(inversedBy'profTimes')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?User $prof null;
  23.     #[ORM\ManyToOne(inversedBy'profTimes')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?Subject $subject null;
  26.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  27.     private ?\DateTimeInterface $day null;
  28.     #[ORM\ManyToOne(inversedBy'profTimes')]
  29.     private ?Exams $exam null;
  30.     #[ORM\ManyToOne(inversedBy'profTimes')]
  31.     private ?ExamWeek $week null;
  32.     #[ORM\ManyToOne(inversedBy'profTimes')]
  33.     #[ORM\JoinColumn(nullablefalse)]
  34.     private ?School $school null;
  35.     #[ORM\ManyToOne(inversedBy'profTimes')]
  36.     #[ORM\JoinColumn(nullablefalse)]
  37.     private ?SchoolYear $year null;
  38.     #[ORM\Column(nullabletrue)]
  39.     private ?float $duration null;
  40.     #[ORM\ManyToOne(inversedBy'profTimes')]
  41.     #[ORM\JoinColumn(nullablefalse)]
  42.     private ?AgendaElement $agendaElement null;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getStartTime(): ?\DateTimeInterface
  48.     {
  49.         return $this->startTime;
  50.     }
  51.     public function setStartTime(\DateTimeInterface $startTime): static
  52.     {
  53.         $this->startTime $startTime;
  54.         return $this;
  55.     }
  56.     public function getEndTime(): ?\DateTimeInterface
  57.     {
  58.         return $this->endTime;
  59.     }
  60.     public function setEndTime(\DateTimeInterface $endTime): static
  61.     {
  62.         $this->endTime $endTime;
  63.         return $this;
  64.     }
  65.     public function getProf(): ?User
  66.     {
  67.         return $this->prof;
  68.     }
  69.     public function setProf(?User $prof): static
  70.     {
  71.         $this->prof $prof;
  72.         return $this;
  73.     }
  74.     public function getSubject(): ?Subject
  75.     {
  76.         return $this->subject;
  77.     }
  78.     public function setSubject(?Subject $subject): static
  79.     {
  80.         $this->subject $subject;
  81.         return $this;
  82.     }
  83.     public function getDay(): ?\DateTimeInterface
  84.     {
  85.         return $this->day;
  86.     }
  87.     public function setDay(\DateTimeInterface $day): static
  88.     {
  89.         $this->day $day;
  90.         return $this;
  91.     }
  92.     public function getExam(): ?Exams
  93.     {
  94.         return $this->exam;
  95.     }
  96.     public function setExam(?Exams $exam): static
  97.     {
  98.         $this->exam $exam;
  99.         return $this;
  100.     }
  101.     public function getWeek(): ?ExamWeek
  102.     {
  103.         return $this->week;
  104.     }
  105.     public function setWeek(?ExamWeek $week): static
  106.     {
  107.         $this->week $week;
  108.         return $this;
  109.     }
  110.     public function getSchool(): ?School
  111.     {
  112.         return $this->school;
  113.     }
  114.     public function setSchool(?School $school): static
  115.     {
  116.         $this->school $school;
  117.         return $this;
  118.     }
  119.     public function getYear(): ?SchoolYear
  120.     {
  121.         return $this->year;
  122.     }
  123.     public function setYear(?SchoolYear $year): static
  124.     {
  125.         $this->year $year;
  126.         return $this;
  127.     }
  128.     public function getDuration(): ?float
  129.     {
  130.         return $this->duration;
  131.     }
  132.     public function setDuration(float $duration): static
  133.     {
  134.         $this->duration $duration;
  135.         return $this;
  136.     }
  137.     public function getAgendaElement(): ?AgendaElement
  138.     {
  139.         return $this->agendaElement;
  140.     }
  141.     public function setAgendaElement(?AgendaElement $agendaElement): static
  142.     {
  143.         $this->agendaElement $agendaElement;
  144.         return $this;
  145.     }
  146. }