src/Entity/GestionnaireEntreprise.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GestionnaireEntrepriseRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: GestionnaireEntrepriseRepository::class)]
  7. class GestionnaireEntreprise 
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id = null;
  13.     #[ORM\Column(length: 255)]
  14.     private $nom;
  15.     #[ORM\Column(length: 255)]
  16.     private $prenom;
  17.     #[ORM\Column(length: 40, unique: true, nullable: true)]
  18.     private ?string $hashId = null;
  19.     #[ORM\Column(length: 20, nullable: true)]
  20.     private $telephone;
  21.     #[ORM\Column(length: 20, nullable: true)]
  22.     private $portable;
  23.     #[ORM\Column(length: 255, nullable: true)]
  24.     private $ville;
  25.     #[ORM\ManyToOne(targetEntity: Pays::class)]
  26.     #[ORM\JoinColumn(nullable: false)]
  27.     private $pays;
  28.     #[ORM\Column(length: 255, nullable: true)]
  29.     private $adress;
  30.     #[ORM\Column(length: 10, nullable: true)]
  31.     private $codePostal;
  32.     #[ORM\Column(type: "integer")]
  33.     private $etatId;
  34.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  35.    
  36.     private $dateCreation;
  37.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  38.    
  39.     private $dateUpdate;
  40.     #[ORM\Column(type: "boolean", nullable: true)]
  41.     private $agent;
  42.   
  43.     #[ORM\ManyToOne]
  44.     private ?User $user = null;
  45.     
  46.    
  47.     #[ORM\Column(length: 255, nullable: true)]
  48.     private ?string $email = null;
  49.     #[ORM\Column(length: 255, nullable: true)]
  50.     private ?string $password = null;
  51.     #[ORM\ManyToOne]
  52.     private ?Etat $etat = null;
  53.     #[ORM\Column(length: 255, nullable: true)]
  54.     private ?string $civilite = null;
  55.     #[ORM\Column(length: 255, nullable: true)]
  56.     private ?string $num_voie = null;
  57.     #[ORM\Column(length: 255, nullable: true)]
  58.     private ?string $type_voie = null;
  59.     #[ORM\Column(length: 255, nullable: true)]
  60.     private ?string $nom_voie = null;
  61.     #[ORM\ManyToOne]
  62.     private ?Langue $langue = null;
  63.     #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
  64.     private ?\DateTimeInterface $date_naissance = null;
  65.     
  66.     #[ORM\ManyToOne]
  67.     private ?Departement $departement = null;
  68.     #[ORM\Column(length: 255, nullable: true)]
  69.     private ?string $code_pays_dep = null;
  70.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  71.     private ?\DateTimeInterface $date_acceptation = null;
  72.     #[ORM\Column(length: 255, nullable: true)]
  73.     private ?string $pseudo = null;
  74.     public function getId(): ?int
  75.     {
  76.         return $this->id;
  77.     }
  78.     public function getHashId(): ?string
  79.     {
  80.         return $this->hashId;
  81.     }
  82.     public function setHashId(?string $hashId): self
  83.     {
  84.         $this->hashId = $hashId;
  85.         return $this;
  86.     }
  87.     public function getNom(): ?string
  88.     {
  89.         return $this->nom;
  90.     }
  91.     public function setNom(string $nom): self
  92.     {
  93.         $this->nom = $nom;
  94.         return $this;
  95.     }
  96.     public function getPrenom(): ?string
  97.     {
  98.         return $this->prenom;
  99.     }
  100.     public function setPrenom(string $prenom): self
  101.     {
  102.         $this->prenom = $prenom;
  103.         return $this;
  104.     }
  105.     public function getTelephone(): ?string
  106.     {
  107.         return $this->telephone;
  108.     }
  109.     public function setTelephone(string $telephone): self
  110.     {
  111.         $this->telephone = $telephone;
  112.         return $this;
  113.     }
  114.     public function getPortable(): ?string
  115.     {
  116.         return $this->portable;
  117.     }
  118.     public function setPortable(?string $portable): self
  119.     {
  120.         $this->portable = $portable;
  121.         return $this;
  122.     }
  123.     public function getVille(): ?string
  124.     {
  125.         return $this->ville;
  126.     }
  127.     public function setVille(string $ville): self
  128.     {
  129.         $this->ville = $ville;
  130.         return $this;
  131.     }
  132.     public function getPays(): ?Pays
  133.     {
  134.         return $this->pays;
  135.     }
  136.     public function setPays(?Pays $pays): self
  137.     {
  138.         $this->pays = $pays;
  139.         return $this;
  140.     }
  141.     public function getAdress(): ?string
  142.     {
  143.         return $this->adress;
  144.     }
  145.     public function setAdress(string $adress): self
  146.     {
  147.         $this->adress = $adress;
  148.         return $this;
  149.     }
  150.     public function getCodePostal(): ?string
  151.     {
  152.         return $this->codePostal;
  153.     }
  154.     public function setCodePostal(string $codePostal): self
  155.     {
  156.         $this->codePostal = $codePostal;
  157.         return $this;
  158.     }
  159.     public function getEtatId(): ?int
  160.     {
  161.         return $this->etatId;
  162.     }
  163.     public function setEtatId(int $etatId): self
  164.     {
  165.         $this->etatId = $etatId;
  166.         return $this;
  167.     }
  168.     public function getProfessionalId(): ?int
  169.     {
  170.         return $this->professionalId;
  171.     }
  172.     public function setProfessionalId(int $professionalId): self
  173.     {
  174.         $this->professionalId = $professionalId;
  175.         return $this;
  176.     }
  177.     public function isAgent(): ?bool
  178.     {
  179.         return $this->agent;
  180.     }
  181.     public function setAgent(bool $agent): self
  182.     {
  183.         $this->agent = $agent;
  184.         return $this;
  185.     }
  186.     public function getDateCreation(): ?\DateTimeInterface
  187.     {
  188.         return $this->dateCreation;
  189.     }
  190.     public function setDateCreation(\DateTimeInterface $dateCreation): self
  191.     {
  192.         $this->dateCreation = $dateCreation;
  193.         return $this;
  194.     }
  195.     public function getDateUpdate(): ?\DateTimeInterface
  196.     {
  197.         return $this->dateUpdate;
  198.     }
  199.     public function setDateUpdate(\DateTimeInterface $dateUpdate): self
  200.     {
  201.         $this->dateUpdate = $dateUpdate;
  202.         return $this;
  203.     }
  204.   
  205.     public function getUser(): ?User
  206.     {
  207.         return $this->user;
  208.     }
  209.     public function setUser(?User $user): static
  210.     {
  211.         $this->user = $user;
  212.         return $this;
  213.     }
  214.     public function getEmail(): ?string
  215.     {
  216.         return $this->email;
  217.     }
  218.     public function setEmail(?string $email): static
  219.     {
  220.         $this->email = $email;
  221.         return $this;
  222.     }
  223.     public function getPassword(): ?string
  224.     {
  225.         return $this->password;
  226.     }
  227.     public function setPassword(?string $password): static
  228.     {
  229.         $this->password = $password;
  230.         return $this;
  231.     }
  232.     public function getEtat(): ?Etat
  233.     {
  234.         return $this->etat;
  235.     }
  236.     public function setEtat(?Etat $etat): static
  237.     {
  238.         $this->etat = $etat;
  239.         return $this;
  240.     }
  241.   
  242.     public function getCivilite(): ?string
  243.     {
  244.         return $this->civilite;
  245.     }
  246.     public function setCivilite(?string $civilite): static
  247.     {
  248.         $this->civilite = $civilite;
  249.         return $this;
  250.     }
  251.     public function getNumVoie(): ?string
  252.     {
  253.         return $this->num_voie;
  254.     }
  255.     public function setNumVoie(?string $num_voie): static
  256.     {
  257.         $this->num_voie = $num_voie;
  258.         return $this;
  259.     }
  260.     public function getTypeVoie(): ?string
  261.     {
  262.         return $this->type_voie;
  263.     }
  264.     public function setTypeVoie(?string $type_voie): static
  265.     {
  266.         $this->type_voie = $type_voie;
  267.         return $this;
  268.     }
  269.     public function getNomVoie(): ?string
  270.     {
  271.         return $this->nom_voie;
  272.     }
  273.     public function setNomVoie(?string $nom_voie): static
  274.     {
  275.         $this->nom_voie = $nom_voie;
  276.         return $this;
  277.     }
  278.     public function getLangue(): ?Langue
  279.     {
  280.         return $this->langue;
  281.     }
  282.     public function setLangue(?Langue $langue): static
  283.     {
  284.         $this->langue = $langue;
  285.         return $this;
  286.     }
  287.     public function getDateNaissance(): ?\DateTimeInterface
  288.     {
  289.         return $this->date_naissance;
  290.     }
  291.     public function setDateNaissance(?\DateTimeInterface $date_naissance): static
  292.     {
  293.         $this->date_naissance = $date_naissance;
  294.         return $this;
  295.     }
  296.     public function getDepartement(): ?Departement
  297.     {
  298.         return $this->departement;
  299.     }
  300.     public function setDepartement(?Departement $departement): static
  301.     {
  302.         $this->departement = $departement;
  303.         return $this;
  304.     }
  305.     public function getCodePaysDep(): ?string
  306.     {
  307.         return $this->code_pays_dep;
  308.     }
  309.     public function setCodePaysDep(?string $code_pays_dep): static
  310.     {
  311.         $this->code_pays_dep = $code_pays_dep;
  312.         return $this;
  313.     }
  314.     public function getDateAcceptation(): ?\DateTimeInterface
  315.     {
  316.         return $this->date_acceptation;
  317.     }
  318.     public function setDateAcceptation(?\DateTimeInterface $date_acceptation): static
  319.     {
  320.         $this->date_acceptation = $date_acceptation;
  321.         return $this;
  322.     }
  323.     public function getPseudo(): ?string
  324.     {
  325.         return $this->pseudo;
  326.     }
  327.     public function setPseudo(?string $pseudo): static
  328.     {
  329.         $this->pseudo = $pseudo;
  330.         return $this;
  331.     }
  332. }