src/Entity/Autres.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\User;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\AutresRepository;
  6. #[ORM\Entity(repositoryClassAutresRepository::class)]
  7. class Autres extends User
  8. {
  9.     #[ORM\Column(type'string'length255)]
  10.     private $nom;
  11.     #[ORM\Column(type'string'length255)]
  12.     private $prenom;
  13.     #[ORM\Column(type'string'length255)]
  14.     private $tel;
  15.     #[ORM\ManyToOne()]
  16.     private ?Gouvernorat $gouvernorat null;
  17.     public function getNom(): ?string
  18.     {
  19.         return $this->nom;
  20.     }
  21.     public function setNom(string $nom): self
  22.     {
  23.         $this->nom $nom;
  24.         return $this;
  25.     }
  26.     public function getPrenom(): ?string
  27.     {
  28.         return $this->prenom;
  29.     }
  30.     public function setPrenom(string $prenom): self
  31.     {
  32.         $this->prenom $prenom;
  33.         return $this;
  34.     }
  35.     public function getTel(): ?string
  36.     {
  37.         return $this->tel;
  38.     }
  39.     public function setTel(string $tel): self
  40.     {
  41.         $this->tel $tel;
  42.         return $this;
  43.     }
  44.     public function getGouvernorat(): ?Gouvernorat
  45.     {
  46.         return $this->gouvernorat;
  47.     }
  48.     public function setGouvernorat(?Gouvernorat $gouvernorat): self
  49.     {
  50.         $this->gouvernorat $gouvernorat;
  51.         return $this;
  52.     }
  53. }