src/Entity/DonneeCompteClient.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DonneeCompteClientRepository::class)
  8.  */
  9. class DonneeCompteClient
  10. {
  11.     // Constantes pour les états d'activation
  12.     public const ACTIVATION_INACTIVE 0;
  13.     public const ACTIVATION_PENDING 1;
  14.     public const ACTIVATION_ACTIVE 2;
  15.     // Trigramme pour le responsable des dernières modifications
  16.     public const USER_DERNIERE_MODIF_MCC 'MCC';
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\Column(type="integer", nullable=false)
  20.      */
  21.     private int $numeroClient;
  22.     /**
  23.      * @ORM\Column(type="string", length=256, nullable=true)
  24.      */
  25.     private ?string $rue1;
  26.     /**
  27.      * @ORM\Column(type="string", length=256, nullable=true)
  28.      */
  29.     private ?string $rue2;
  30.     /**
  31.      * @ORM\Column(type="string", length=256, nullable=true)
  32.      */
  33.     private ?string $rue3;
  34.     /**
  35.      * @ORM\Column(type="string", length=256, nullable=true)
  36.      */
  37.     private ?string $ville;
  38.     /**
  39.      * @ORM\Column(type="string", length=5, nullable=true)
  40.      */
  41.     private ?string $codePostal;
  42.     /**
  43.      * @ORM\Column(type="string", length=256, nullable=true)
  44.      */
  45.     private ?string $paysRegion;
  46.     /**
  47.      * @ORM\Column(type="string", length=50, nullable=true)
  48.      */
  49.     private ?string $telephoneFixe1;
  50.     /**
  51.      * @ORM\Column(type="string", length=50, nullable=true)
  52.      */
  53.     private ?string $telephoneFixe2;
  54.     /**
  55.      * @ORM\Column(type="string", length=50, nullable=true)
  56.      */
  57.     private ?string $telephoneMobile1;
  58.     /**
  59.      * @ORM\Column(type="string", length=50, nullable=true)
  60.      */
  61.     private ?string $telephoneMobile2;
  62.     /**
  63.      * @ORM\Column(type="date", nullable=true)
  64.      */
  65.     private ?DateTime $dateNaissance;
  66.     /**
  67.      * @ORM\Column(type="string", length=5, nullable=true)
  68.      */
  69.     private ?string $cpNaissance;
  70.     /**
  71.      * @ORM\Column(type="string", length=256, nullable=true)
  72.      */
  73.     private ?string $villeNaissance;
  74.     /**
  75.      * @ORM\Column(type="string", length=256, nullable=true)
  76.      */
  77.     private ?string $paysNaissance;
  78.     /**
  79.      * @ORM\Column(type="boolean", nullable=false)
  80.      */
  81.     private bool $consentComCommercial;
  82.     /**
  83.      * @ORM\Column(type="string", nullable=true)
  84.      * @Assert\Email()
  85.      */
  86.     private ?string $email;
  87.     /**
  88.      * @ORM\Column(type="integer", nullable=false)
  89.      */
  90.     private int $activationCompte 0;
  91.     /**
  92.      * @ORM\Column(type="datetime", nullable=false)
  93.      */
  94.     private DateTime $dateDerniereModif;
  95.     /**
  96.      * @ORM\Column(type="string", length=50, nullable=false)
  97.      */
  98.     private string $userDerniereModif;
  99.     /**
  100.      * @ORM\Column(type="string", length=50, nullable=true)
  101.      */
  102.     private ?string $civilite;
  103.     /**
  104.      * @ORM\Column(type="string", length=256, nullable=true)
  105.      */
  106.     private ?string $nom;
  107.     /**
  108.      * @ORM\Column(type="string", length=256, nullable=true)
  109.      */
  110.     private ?string $prenom;
  111.     public function __construct()
  112.     {
  113.         $this->dateDerniereModif = new DateTime();
  114.         $this->consentComCommercial false;
  115.     }
  116.     public function getUserDerniereModif(): string
  117.     {
  118.         return $this->userDerniereModif;
  119.     }
  120.     public function setUserDerniereModif(string $userDerniereModif): self
  121.     {
  122.         $this->userDerniereModif $userDerniereModif;
  123.         return $this;
  124.     }
  125.     public function getDateDerniereModif(): DateTime
  126.     {
  127.         return $this->dateDerniereModif;
  128.     }
  129.     public function setDateDerniereModif(DateTime $dateDerniereModif): self
  130.     {
  131.         $this->dateDerniereModif $dateDerniereModif;
  132.         return $this;
  133.     }
  134.     public function getActivationCompte(): ?int
  135.     {
  136.         return $this->activationCompte;
  137.     }
  138.     public function setActivationCompte(int $activationCompte): self
  139.     {
  140.         $this->activationCompte $activationCompte;
  141.         return $this;
  142.     }
  143.     public function getEmail(): ?string
  144.     {
  145.         return $this->email ?? null;
  146.     }
  147.     public function setEmail(?string $email): self
  148.     {
  149.         $this->email $email;
  150.         return $this;
  151.     }
  152.     public function isConsentComCommercial(): bool
  153.     {
  154.         return $this->consentComCommercial;
  155.     }
  156.     public function setConsentComCommercial(bool $consentComCommercial): self
  157.     {
  158.         $this->consentComCommercial $consentComCommercial;
  159.         return $this;
  160.     }
  161.     public function getPaysNaissance(): ?string
  162.     {
  163.         return $this->paysNaissance ?? null;
  164.     }
  165.     public function setPaysNaissance(?string $paysNaissance): self
  166.     {
  167.         $this->paysNaissance $paysNaissance;
  168.         return $this;
  169.     }
  170.     public function getVilleNaissance(): ?string
  171.     {
  172.         return $this->villeNaissance ?? null;
  173.     }
  174.     public function setVilleNaissance(?string $villeNaissance): self
  175.     {
  176.         $this->villeNaissance $villeNaissance;
  177.         return $this;
  178.     }
  179.     public function getCpNaissance(): ?string
  180.     {
  181.         return $this->cpNaissance ?? null;
  182.     }
  183.     public function setCpNaissance(?string $cpNaissance): self
  184.     {
  185.         $this->cpNaissance $cpNaissance;
  186.         return $this;
  187.     }
  188.     public function getDateNaissance(): ?DateTime
  189.     {
  190.         return $this->dateNaissance;
  191.     }
  192.     public function setDateNaissance(?DateTime $dateNaissance): self
  193.     {
  194.         $this->dateNaissance $dateNaissance;
  195.         return $this;
  196.     }
  197.     public function getTelephoneMobile2(): ?string
  198.     {
  199.         return $this->telephoneMobile2 ?? null;
  200.     }
  201.     public function setTelephoneMobile2(?string $telephoneMobile2): self
  202.     {
  203.         $this->telephoneMobile2 $telephoneMobile2;
  204.         return $this;
  205.     }
  206.     public function getTelephoneMobile1(): ?string
  207.     {
  208.         return $this->telephoneMobile1 ?? null;
  209.     }
  210.     public function setTelephoneMobile1(?string $telephoneMobile1): self
  211.     {
  212.         $this->telephoneMobile1 $telephoneMobile1;
  213.         return $this;
  214.     }
  215.     public function getTelephoneFixe2(): ?string
  216.     {
  217.         return $this->telephoneFixe2 ?? null;
  218.     }
  219.     public function setTelephoneFixe2(?string $telephoneFixe2): self
  220.     {
  221.         $this->telephoneFixe2 $telephoneFixe2;
  222.         return $this;
  223.     }
  224.     public function getTelephoneFixe1(): ?string
  225.     {
  226.         return $this->telephoneFixe1 ?? null;
  227.     }
  228.     public function setTelephoneFixe1(?string $telephoneFixe1): self
  229.     {
  230.         $this->telephoneFixe1 $telephoneFixe1;
  231.         return $this;
  232.     }
  233.     public function getPaysRegion(): ?string
  234.     {
  235.         return $this->paysRegion ?? null;
  236.     }
  237.     public function setPaysRegion(?string $paysRegion): self
  238.     {
  239.         $this->paysRegion $paysRegion;
  240.         return $this;
  241.     }
  242.     public function getCodePostal(): ?string
  243.     {
  244.         return $this->codePostal ?? null;
  245.     }
  246.     public function setCodePostal(?string $codePostal): self
  247.     {
  248.         $this->codePostal $codePostal;
  249.         return $this;
  250.     }
  251.     public function getVille(): ?string
  252.     {
  253.         return $this->ville ?? null;
  254.     }
  255.     public function setVille(?string $ville): self
  256.     {
  257.         $this->ville $ville;
  258.         return $this;
  259.     }
  260.     public function getRue3(): ?string
  261.     {
  262.         return $this->rue3 ?? null;
  263.     }
  264.     public function setRue3(?string $rue3): self
  265.     {
  266.         $this->rue3 $rue3;
  267.         return $this;
  268.     }
  269.     public function getRue2(): ?string
  270.     {
  271.         return $this->rue2 ?? null;
  272.     }
  273.     public function setRue2(?string $rue2): self
  274.     {
  275.         $this->rue2 $rue2;
  276.         return $this;
  277.     }
  278.     public function getRue1(): ?string
  279.     {
  280.         return $this->rue1 ?? null;
  281.     }
  282.     public function setRue1(?string $rue1): self
  283.     {
  284.         $this->rue1 $rue1;
  285.         return $this;
  286.     }
  287.     public function getNumeroClient(): int
  288.     {
  289.         return $this->numeroClient;
  290.     }
  291.     public function setNumeroClient(int $numeroClient): self
  292.     {
  293.         $this->numeroClient $numeroClient;
  294.         return $this;
  295.     }
  296.     public function getCivilite(): ?string
  297.     {
  298.         return $this->civilite;
  299.     }
  300.     public function setCivilite(?string $civilite): self
  301.     {
  302.         $this->civilite $civilite;
  303.         return $this;
  304.     }
  305.     public function getNom(): ?string
  306.     {
  307.         return $this->nom;
  308.     }
  309.     public function setNom(?string $nom): self
  310.     {
  311.         $this->nom $nom;
  312.         return $this;
  313.     }
  314.     public function getPrenom(): ?string
  315.     {
  316.         return $this->prenom;
  317.     }
  318.     public function setPrenom(?string $prenom): self
  319.     {
  320.         $this->prenom $prenom;
  321.         return $this;
  322.     }
  323. }