<?phpnamespace App\Entity;use App\Repository\UserPreInscriptionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserPreInscriptionRepository::class)]class UserPreInscription{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = 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\Column(length: 255)] private ?string $phone = null; #[ORM\OneToMany(mappedBy: 'parent', targetEntity: StudentPreInscription::class)] private Collection $studentPreInscriptions; #[ORM\Column(length: 255, nullable: true)] private ?string $email = null; #[ORM\Column(length: 255, nullable: true)] private ?string $password = null; #[ORM\Column(nullable: true)] private ?int $status = null; public function __construct() { $this->studentPreInscriptions = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getFullName():string { return $this->lastName.' '.$this->firstName; } public function __toString(): string { return $this->getFullName(); } 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 getPhone(): ?string { return $this->phone; } public function setPhone(string $phone): static { $this->phone = $phone; return $this; } /** * @return Collection<int, StudentPreInscription> */ public function getStudentPreInscriptions(): Collection { return $this->studentPreInscriptions; } public function addStudentPreInscription(StudentPreInscription $studentPreInscription): static { if (!$this->studentPreInscriptions->contains($studentPreInscription)) { $this->studentPreInscriptions->add($studentPreInscription); $studentPreInscription->setParent($this); } return $this; } public function removeStudentPreInscription(StudentPreInscription $studentPreInscription): static { if ($this->studentPreInscriptions->removeElement($studentPreInscription)) { // set the owning side to null (unless already changed) if ($studentPreInscription->getParent() === $this) { $studentPreInscription->setParent(null); } } return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): static { $this->email = $email; return $this; } public function getPassword(): ?string { return $this->password; } public function setPassword(?string $password): static { $this->password = $password; return $this; } public function getStatus(): ?int { return $this->status; } public function setStatus(?int $status): static { $this->status = $status; return $this; }}