src/Entity/Particulier.php line 14

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\ParticulierRepository;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassParticulierRepository::class)]
  8. class Particulier extends User
  9. {
  10.     /**
  11.      * @Assert\NotBlank(message=" titre doit etre non vide")
  12.      *     )
  13.      * @ORM\Column(type="string", length=255)
  14.      */
  15.     #[ORM\Column(type'string'length255)]
  16.     private $nom;
  17.     /**
  18.      * @Assert\NotBlank(message=" titre doit etre non vide")
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     #[ORM\Column(type'string'length255)]
  22.     private $prenom;
  23.     /**
  24.      * @Assert\NotBlank(message=" titre doit etre non vide")
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     #[ORM\Column(type'string'length255)]
  28.     private $tel;
  29.     #[ORM\ManyToOne()]
  30.     private ?Gouvernorat $gouvernorat null;
  31.       /**
  32.      * @Assert\NotBlank(message=" fonction doit etre non vide")
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     #[ORM\Column(type'string'length255)]
  36.     private $fonction;
  37.       /**
  38.      * @ORM\Column(type="string", length=255)
  39.      */
  40.     #[ORM\Column(type'string'length255,nullable:true)]
  41.     private $autre
  42.  /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     #[ORM\Column(type'string'length255nullabletrue)]
  46.     private $fonctions;
  47.     public function getNom(): ?string
  48.     {
  49.         return $this->nom;
  50.     }
  51.     public function setNom(string $nom): self
  52.     {
  53.         $this->nom $nom;
  54.         return $this;
  55.     }
  56.     public function getPrenom(): ?string
  57.     {
  58.         return $this->prenom;
  59.     }
  60.     public function setPrenom(string $prenom): self
  61.     {
  62.         $this->prenom $prenom;
  63.         return $this;
  64.     }
  65.     public function getTel(): ?string
  66.     {
  67.         return $this->tel;
  68.     }
  69.     public function setTel(string $tel): self
  70.     {
  71.         $this->tel $tel;
  72.         return $this;
  73.     }
  74.     public function getGouvernorat(): ?Gouvernorat
  75.     {
  76.         return $this->gouvernorat;
  77.     }
  78.     public function setGouvernorat(?Gouvernorat $gouvernorat): self
  79.     {
  80.         $this->gouvernorat $gouvernorat;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get the value of fonction
  85.      */ 
  86.     public function getFonction()
  87.     {
  88.         return $this->fonction;
  89.     }
  90.     /**
  91.      * Set the value of fonction
  92.      *
  93.      * @return  self
  94.      */ 
  95.     public function setFonction($fonction)
  96.     {
  97.         $this->fonction $fonction;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get the value of autre
  102.      */ 
  103.     public function getAutre()
  104.     {
  105.         return $this->autre;
  106.     }
  107.     /**
  108.      * Set the value of autre
  109.      *
  110.      * @return  self
  111.      */ 
  112.     public function setAutre($autre)
  113.     {
  114.         $this->autre $autre;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get the value of fonctions
  119.      */ 
  120.     public function getFonctions()
  121.     {
  122.         return $this->fonctions;
  123.     }
  124.     /**
  125.      * Set the value of fonctions
  126.      *
  127.      * @return  self
  128.      */ 
  129.     public function setFonctions($fonctions)
  130.     {
  131.         $this->fonctions $fonctions;
  132.         return $this;
  133.     }
  134. }