<?phpnamespace App\Entity;use App\Repository\StudentPreInscriptionRepository;use Doctrine\ORM\Mapping as ORM;use Doctrine\DBAL\Types\Types;#[ORM\Entity(repositoryClass: StudentPreInscriptionRepository::class)]class StudentPreInscription{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'studentPreInscriptions')] #[ORM\JoinColumn(nullable: false)] private ?UserPreInscription $parent = null; #[ORM\Column(length: 255)] private ?string $firstName = null; #[ORM\Column(length: 255)] private ?string $lastName = null; #[ORM\Column(length: 255)] private ?string $sexe = null; #[ORM\ManyToOne(inversedBy: 'studentPreInscriptions')] #[ORM\JoinColumn(nullable: false)] private ?TheClass $classe = null; #[ORM\Column(length: 255, nullable: true)] private ?string $matricule = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $bornDay = null; #[ORM\Column(length: 255)] private ?string $bornLocation = null; #[ORM\Column(length: 255, nullable: true)] private ?string $father = null; #[ORM\Column(length: 255, nullable: true)] private ?string $mother = null; #[ORM\Column(nullable: true)] private ?int $status = null; public function getId(): ?int { return $this->id; } public function __toString(): string { return $this->getFullName(); } public function getFullName():string { return $this->lastName.' '.$this->firstName; } public function getParent(): ?UserPreInscription { return $this->parent; } public function setParent(?UserPreInscription $parent): static { $this->parent = $parent; return $this; } public function getFirstName(): ?string { return $this->firstName; } public function setFirstName(string $firstName): static { $this->firstName = $firstName; return $this; } public function getLastName(): ?string { return $this->lastName; } public function setLastName(string $lastName): static { $this->lastName = $lastName; return $this; } public function getSexe(): ?string { return $this->sexe; } public function setSexe(string $sexe): static { $this->sexe = $sexe; return $this; } public function getClasse(): ?TheClass { return $this->classe; } public function setClasse(?TheClass $classe): static { $this->classe = $classe; return $this; } public function getMatricule(): ?string { return $this->matricule; } public function setMatricule(?string $matricule): static { $this->matricule = $matricule; return $this; } public function getBornDay(): ?\DateTimeInterface { return $this->bornDay; } public function setBornDay(?\DateTimeInterface $bornDay): static { $this->bornDay = $bornDay; return $this; } public function getBornLocation(): ?string { return $this->bornLocation; } public function setBornLocation(string $bornLocation): static { $this->bornLocation = $bornLocation; return $this; } public function getFather(): ?string { return $this->father; } public function setFather(?string $father): static { $this->father = $father; return $this; } public function getMother(): ?string { return $this->mother; } public function setMother(?string $mother): static { $this->mother = $mother; return $this; } public function getStatus(): ?int { return $this->status; } public function setStatus(?int $status): static { $this->status = $status; return $this; }}