src/Entity/StudentPreInscription.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StudentPreInscriptionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\DBAL\Types\Types;
  6. #[ORM\Entity(repositoryClassStudentPreInscriptionRepository::class)]
  7. class StudentPreInscription
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'studentPreInscriptions')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?UserPreInscription $parent null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $firstName null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $lastName null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $sexe null;
  22.     #[ORM\ManyToOne(inversedBy'studentPreInscriptions')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?TheClass $classe null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $matricule null;
  27.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $bornDay null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $bornLocation null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $father null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $mother null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?int $status null;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function __toString(): string
  42.     {
  43.         return $this->getFullName();
  44.     }
  45.     public function getFullName():string
  46.     {
  47.         return  $this->lastName.' '.$this->firstName;
  48.     }
  49.     public function getParent(): ?UserPreInscription
  50.     {
  51.         return $this->parent;
  52.     }
  53.     public function setParent(?UserPreInscription $parent): static
  54.     {
  55.         $this->parent $parent;
  56.         return $this;
  57.     }
  58.     public function getFirstName(): ?string
  59.     {
  60.         return $this->firstName;
  61.     }
  62.     public function setFirstName(string $firstName): static
  63.     {
  64.         $this->firstName $firstName;
  65.         return $this;
  66.     }
  67.     public function getLastName(): ?string
  68.     {
  69.         return $this->lastName;
  70.     }
  71.     public function setLastName(string $lastName): static
  72.     {
  73.         $this->lastName $lastName;
  74.         return $this;
  75.     }
  76.     public function getSexe(): ?string
  77.     {
  78.         return $this->sexe;
  79.     }
  80.     public function setSexe(string $sexe): static
  81.     {
  82.         $this->sexe $sexe;
  83.         return $this;
  84.     }
  85.     public function getClasse(): ?TheClass
  86.     {
  87.         return $this->classe;
  88.     }
  89.     public function setClasse(?TheClass $classe): static
  90.     {
  91.         $this->classe $classe;
  92.         return $this;
  93.     }
  94.     public function getMatricule(): ?string
  95.     {
  96.         return $this->matricule;
  97.     }
  98.     public function setMatricule(?string $matricule): static
  99.     {
  100.         $this->matricule $matricule;
  101.         return $this;
  102.     }
  103.     public function getBornDay(): ?\DateTimeInterface
  104.     {
  105.         return $this->bornDay;
  106.     }
  107.     public function setBornDay(?\DateTimeInterface $bornDay): static
  108.     {
  109.         $this->bornDay $bornDay;
  110.         return $this;
  111.     }
  112.     public function getBornLocation(): ?string
  113.     {
  114.         return $this->bornLocation;
  115.     }
  116.     public function setBornLocation(string $bornLocation): static
  117.     {
  118.         $this->bornLocation $bornLocation;
  119.         return $this;
  120.     }
  121.     public function getFather(): ?string
  122.     {
  123.         return $this->father;
  124.     }
  125.     public function setFather(?string $father): static
  126.     {
  127.         $this->father $father;
  128.         return $this;
  129.     }
  130.     public function getMother(): ?string
  131.     {
  132.         return $this->mother;
  133.     }
  134.     public function setMother(?string $mother): static
  135.     {
  136.         $this->mother $mother;
  137.         return $this;
  138.     }
  139.     public function getStatus(): ?int
  140.     {
  141.         return $this->status;
  142.     }
  143.     public function setStatus(?int $status): static
  144.     {
  145.         $this->status $status;
  146.         return $this;
  147.     }
  148. }