src/Entity/Dae.php line 11

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\DaeRepository;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassDaeRepository::class)]
  8. class Dae extends User
  9. {
  10.     #[ORM\Column(type'string'length255)]
  11.     private $tel;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $nom;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $prenom;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $ministere;
  18. //    #[ORM\Column(type: 'string', length: 255)]
  19. //    private $nom_administration;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $direction;
  22. //    #[ORM\Column(type: 'string', length: 255)]
  23. //    private $unite_regionale;
  24.     #[ORM\ManyToOne()]
  25.     private ?Gouvernorat $gouvernorat null;
  26.     public function getTel(): ?string
  27.     {
  28.         return $this->tel;
  29.     }
  30.     public function setTel(string $tel): self
  31.     {
  32.         $this->tel $tel;
  33.         return $this;
  34.     }
  35.     public function getNom(): ?string
  36.     {
  37.         return $this->nom;
  38.     }
  39.     public function setNom(string $nom): self
  40.     {
  41.         $this->nom $nom;
  42.         return $this;
  43.     }
  44.     public function getPrenom(): ?string
  45.     {
  46.         return $this->prenom;
  47.     }
  48.     public function setPrenom(string $prenom): self
  49.     {
  50.         $this->prenom $prenom;
  51.         return $this;
  52.     }
  53.     public function getMinistere(): ?string
  54.     {
  55.         return $this->ministere;
  56.     }
  57.     public function setMinistere(string $ministere): self
  58.     {
  59.         $this->ministere $ministere;
  60.         return $this;
  61.     }
  62. //    public function getNomAdministration(): ?string
  63. //    {
  64. //        return $this->nom_administration;
  65. //    }
  66. //
  67. //    public function setNomAdministration(string $nom_administration): self
  68. //    {
  69. //        $this->nom_administration = $nom_administration;
  70. //
  71. //        return $this;
  72. //    }
  73.     public function getDirection(): ?string
  74.     {
  75.         return $this->direction;
  76.     }
  77.     public function setDirection(string $direction): self
  78.     {
  79.         $this->direction $direction;
  80.         return $this;
  81.     }
  82. //    public function getUniteRegionale(): ?string
  83. //    {
  84. //        return $this->unite_regionale;
  85. //    }
  86. //
  87. //    public function setUniteRegionale(string $unite_regionale): self
  88. //    {
  89. //        $this->unite_regionale = $unite_regionale;
  90. //
  91. //        return $this;
  92. //    }
  93.     /**
  94.      * Get the value of gouvernorat
  95.      */ 
  96.     public function getGouvernorat()
  97.     {
  98.         return $this->gouvernorat;
  99.     }
  100.     /**
  101.      * Set the value of gouvernorat
  102.      *
  103.      * @return  self
  104.      */ 
  105.     public function setGouvernorat($gouvernorat)
  106.     {
  107.         $this->gouvernorat $gouvernorat;
  108.         return $this;
  109.     }
  110. }