src/Entity/JustifyAbsence.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\JustifyAbsenceRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\HasLifecycleCallbacks]
  8. #[ORM\Entity(repositoryClassJustifyAbsenceRepository::class)]
  9. class JustifyAbsence
  10. {
  11.     use Timestampable;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'justifyAbsences')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Absence $absence null;
  19.     #[ORM\Column]
  20.     private ?int $number null;
  21.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  22.     private ?string $motif null;
  23.     #[ORM\ManyToOne(inversedBy'justifyAbsences')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?School $school null;
  26.     #[ORM\ManyToOne(inversedBy'justifyAbsences')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?SchoolYear $year null;
  29.     #[ORM\ManyToOne(inversedBy'justifyAbsences')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?User $author null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getAbsence(): ?Absence
  37.     {
  38.         return $this->absence;
  39.     }
  40.     public function setAbsence(?Absence $absence): static
  41.     {
  42.         $this->absence $absence;
  43.         return $this;
  44.     }
  45.     public function getNumber(): ?int
  46.     {
  47.         return $this->number;
  48.     }
  49.     public function setNumber(int $number): static
  50.     {
  51.         $this->number $number;
  52.         return $this;
  53.     }
  54.     public function getMotif(): ?string
  55.     {
  56.         return $this->motif;
  57.     }
  58.     public function setMotif(?string $motif): static
  59.     {
  60.         $this->motif $motif;
  61.         return $this;
  62.     }
  63.     public function getSchool(): ?School
  64.     {
  65.         return $this->school;
  66.     }
  67.     public function setSchool(?School $school): static
  68.     {
  69.         $this->school $school;
  70.         return $this;
  71.     }
  72.     public function getYear(): ?SchoolYear
  73.     {
  74.         return $this->year;
  75.     }
  76.     public function setYear(?SchoolYear $year): static
  77.     {
  78.         $this->year $year;
  79.         return $this;
  80.     }
  81.     public function getAuthor(): ?User
  82.     {
  83.         return $this->author;
  84.     }
  85.     public function setAuthor(?User $author): static
  86.     {
  87.         $this->author $author;
  88.         return $this;
  89.     }
  90. }