src/Entity/GlobalSchoolBreak.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GlobalSchoolBreakRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassGlobalSchoolBreakRepository::class)]
  7. class GlobalSchoolBreak
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  14.     private ?\DateTimeInterface $startTime null;
  15.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  16.     private ?\DateTimeInterface $endTime null;
  17.     #[ORM\Column]
  18.     private ?int $duration null;
  19.     #[ORM\ManyToOne(inversedBy'globalSchoolBreaks')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?School $school null;
  22.     #[ORM\ManyToOne(inversedBy'globalSchoolBreaks')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?SchoolYear $year null;
  25.     #[ORM\ManyToOne(inversedBy'globalSchoolBreaks')]
  26.     private ?User $author null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getStartTime(): ?\DateTimeInterface
  32.     {
  33.         return $this->startTime;
  34.     }
  35.     public function setStartTime(\DateTimeInterface $startTime): static
  36.     {
  37.         $this->startTime $startTime;
  38.         return $this;
  39.     }
  40.     public function getEndTime(): ?\DateTimeInterface
  41.     {
  42.         return $this->endTime;
  43.     }
  44.     public function setEndTime(\DateTimeInterface $endTime): static
  45.     {
  46.         $this->endTime $endTime;
  47.         return $this;
  48.     }
  49.     public function getDuration(): ?int
  50.     {
  51.         return $this->duration;
  52.     }
  53.     public function setDuration(int $duration): static
  54.     {
  55.         $this->duration $duration;
  56.         return $this;
  57.     }
  58.     public function getSchool(): ?School
  59.     {
  60.         return $this->school;
  61.     }
  62.     public function setSchool(?School $school): static
  63.     {
  64.         $this->school $school;
  65.         return $this;
  66.     }
  67.     public function getYear(): ?SchoolYear
  68.     {
  69.         return $this->year;
  70.     }
  71.     public function setYear(?SchoolYear $year): static
  72.     {
  73.         $this->year $year;
  74.         return $this;
  75.     }
  76.     public function getAuthor(): ?User
  77.     {
  78.         return $this->author;
  79.     }
  80.     public function setAuthor(?User $author): static
  81.     {
  82.         $this->author $author;
  83.         return $this;
  84.     }
  85. }