src/Entity/GeneralBreak.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GeneralBreakRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassGeneralBreakRepository::class)]
  7. class GeneralBreak
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  14.     private ?\DateTimeInterface $startAt null;
  15.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  16.     private ?\DateTimeInterface $endAt null;
  17.     #[ORM\ManyToOne(inversedBy'generalBreaks')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?School $school null;
  20.     #[ORM\ManyToOne(inversedBy'generalBreaks')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?SchoolYear $year null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getStartAt(): ?\DateTimeInterface
  28.     {
  29.         return $this->startAt;
  30.     }
  31.     public function setStartAt(\DateTimeInterface $startAt): static
  32.     {
  33.         $this->startAt $startAt;
  34.         return $this;
  35.     }
  36.     public function getEndAt(): ?\DateTimeInterface
  37.     {
  38.         return $this->endAt;
  39.     }
  40.     public function setEndAt(\DateTimeInterface $endAt): static
  41.     {
  42.         $this->endAt $endAt;
  43.         return $this;
  44.     }
  45.     public function getSchool(): ?School
  46.     {
  47.         return $this->school;
  48.     }
  49.     public function setSchool(?School $school): static
  50.     {
  51.         $this->school $school;
  52.         return $this;
  53.     }
  54.     public function getYear(): ?SchoolYear
  55.     {
  56.         return $this->year;
  57.     }
  58.     public function setYear(?SchoolYear $year): static
  59.     {
  60.         $this->year $year;
  61.         return $this;
  62.     }
  63. }