<?phpnamespace App\Entity;use App\Entity\Traits\Timestampable;use App\Repository\JustifyAbsenceRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\HasLifecycleCallbacks]#[ORM\Entity(repositoryClass: JustifyAbsenceRepository::class)]class JustifyAbsence{ use Timestampable; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'justifyAbsences')] #[ORM\JoinColumn(nullable: false)] private ?Absence $absence = null; #[ORM\Column] private ?int $number = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $motif = null; #[ORM\ManyToOne(inversedBy: 'justifyAbsences')] #[ORM\JoinColumn(nullable: false)] private ?School $school = null; #[ORM\ManyToOne(inversedBy: 'justifyAbsences')] #[ORM\JoinColumn(nullable: false)] private ?SchoolYear $year = null; #[ORM\ManyToOne(inversedBy: 'justifyAbsences')] #[ORM\JoinColumn(nullable: false)] private ?User $author = null; public function getId(): ?int { return $this->id; } public function getAbsence(): ?Absence { return $this->absence; } public function setAbsence(?Absence $absence): static { $this->absence = $absence; return $this; } public function getNumber(): ?int { return $this->number; } public function setNumber(int $number): static { $this->number = $number; return $this; } public function getMotif(): ?string { return $this->motif; } public function setMotif(?string $motif): static { $this->motif = $motif; return $this; } public function getSchool(): ?School { return $this->school; } public function setSchool(?School $school): static { $this->school = $school; return $this; } public function getYear(): ?SchoolYear { return $this->year; } public function setYear(?SchoolYear $year): static { $this->year = $year; return $this; } public function getAuthor(): ?User { return $this->author; } public function setAuthor(?User $author): static { $this->author = $author; return $this; }}