src/Entity/User.php line 279

Open in your IDE?
  1. <?php
  2. // src/Entity/User.php
  3. namespace App\Entity;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  8. use Symfony\Component\Security\Core\User\UserInterface;
  9. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  10. use Doctrine\Common\Collections\ArrayCollection;
  11. use Doctrine\Common\Collections\Collection;
  12. /**
  13.  * @ORM\Entity(repositoryClass="App\Repository\UserRepository")
  14.  * @ORM\Table(name="69pixl_user")
  15.  * @UniqueEntity(fields="email", message="Email already taken")
  16.  * @UniqueEntity(fields="username", message="Username already taken")
  17.  * @ORM\HasLifecycleCallbacks()
  18.  */
  19. class User implements UserInterfacePasswordAuthenticatedUserInterface
  20. {
  21.     /**
  22.      * @ORM\PrePersist
  23.      */
  24.     public function prePersist()
  25.     {
  26.         $this->dateCreated = new \DateTime();
  27.     }
  28.     /**
  29.      * @ORM\Id
  30.      * @ORM\Column(type="integer")
  31.      * @ORM\GeneratedValue(strategy="AUTO")
  32.      */
  33.     private $id;
  34.     /**
  35.      * @var datetime
  36.      * @ORM\Column(name="date_created", type="datetime", nullable=true)
  37.      */
  38.     protected $dateCreated;
  39.     /**
  40.      * @ORM\Column(type="string", length=190, unique=true)
  41.      * @Assert\NotBlank()
  42.      * @Assert\Email()
  43.      */
  44.     private $email;
  45.     /**
  46.      * @ORM\Column(type="string", length=190, nullable=true)
  47.      */
  48.     private $username;
  49.     /**
  50.      * @Assert\Length(max=4096)
  51.      */
  52.     private $plainPassword;
  53.     /**
  54.      * The below length depends on the "algorithm" you use for encoding
  55.      * the password, but this works well with bcrypt.
  56.      *
  57.      * @ORM\Column(type="string", length=64)
  58.      */
  59.     private $password;
  60.     /**
  61.      * @ORM\Column(type="string", length=190, nullable=true)
  62.      * @Assert\NotBlank()
  63.      */
  64.     private $lastName;
  65.     /**
  66.      * @ORM\Column(type="string", length=190, nullable=true)
  67.      * @Assert\NotBlank()
  68.      */
  69.     private $firstName;
  70.     /**
  71.      * @ORM\Column(type="string", length=190, nullable=true)
  72.      */
  73.     private $codeConseiller;
  74.     /**
  75.      * @ORM\Column(type="string", length=190, nullable=true)
  76.      */
  77.     private $numeroSiren;
  78.     /**
  79.      * @ORM\Column(type="string", length=255, nullable=true)
  80.      */
  81.     private $phonePrefix;
  82.     /**
  83.      * @ORM\Column(type="string", length=30, nullable=true)
  84.      */
  85.     private $phone;
  86.     /**
  87.      * @ORM\Column(type="string", length=190, nullable=true)
  88.      */
  89.     private $sex;
  90.     /**
  91.      * @ORM\Column(type="datetime", nullable=true)
  92.      */
  93.     private $dateDeNaissance;
  94.     /**
  95.      * @ORM\Column(type="string", length=240, nullable=true)
  96.      */
  97.     private $numeroDeVoie;
  98.     /**
  99.      * @ORM\Column(type="string", length=190, nullable=true)
  100.      */
  101.     private $codePostal;
  102.     /**
  103.      * @ORM\Column(type="string", length=190, nullable=true)
  104.      */
  105.     private $ville;
  106.     /**
  107.      * @ORM\Column(type="string", length=190, nullable=true)
  108.      */
  109.     private $pays;
  110.     /**
  111.      * @ORM\Column(type="text", nullable=true)
  112.      */
  113.     private $tokenReset;
  114.     /**
  115.      * @ORM\Column(type="string", length=190, nullable=true)
  116.      */
  117.     private $status;
  118.     /**
  119.      * @ORM\Column(type="string", length=190, nullable=true)
  120.      */
  121.     private $adherentDistributeur;
  122.     /**
  123.      * @ORM\Column(type="boolean", nullable=true)
  124.      */
  125.     private $dicIsFile;
  126.     /**
  127.      * @ORM\Column(type="array")
  128.      */
  129.     private $roles;
  130.     /**
  131.      * @ORM\Column(type="integer", length=30, nullable=true)
  132.      */
  133.     private $currentSign;
  134.     /**
  135.      * @ORM\Column(type="string", length=190, nullable=true)
  136.      */
  137.     private $tokenSignupContinue;
  138.     /**
  139.      * @ORM\Column(type="string", length=190, nullable=true)
  140.      */
  141.     private $stepSignup;
  142.     /**
  143.      * @ORM\Column(type="boolean", nullable=true)
  144.      */
  145.     private $isAutoSignup;
  146.     /**
  147.      * @ORM\Column(type="boolean", nullable=true)
  148.      */
  149.     private $sendMailReminder3;
  150.     /**
  151.      * @ORM\Column(type="datetime", nullable=true)
  152.      */
  153.     private $sendMailReminder3Date;
  154.     /**
  155.      * @ORM\Column(type="boolean", nullable=true)
  156.      */
  157.     private $sendMailReminder7;
  158.     /**
  159.      * @ORM\Column(type="datetime", nullable=true)
  160.      */
  161.     private $sendMailReminder7Date;
  162.     /**
  163.      * @ORM\Column(type="boolean", nullable=true)
  164.      */
  165.     private $sendMailReminder12;
  166.     /**
  167.      * @ORM\Column(type="datetime", nullable=true)
  168.      */
  169.     private $sendMailReminder12Date;
  170.     /**
  171.      * @ORM\Column(type="boolean", nullable=true)
  172.      */
  173.     private $sendMailReminder14;
  174.     /**
  175.      * @ORM\Column(type="string", length=190, nullable=true)
  176.      */
  177.     private $autoSignFolderNumber;
  178.     /**
  179.      * @ORM\Column(type="boolean", nullable=true)
  180.      */
  181.     private $adresseFiscaleFrance;
  182.     /**
  183.      * @ORM\Column(type="boolean", nullable=true)
  184.      */
  185.     private $acceptConditionsGeneralesUtilisation;
  186.     /**
  187.      * @ORM\Column(type="boolean", nullable=true)
  188.      */
  189.     private $connaissanceProtectionDonneesPersonnelles;
  190.     /**
  191.      * @ORM\Column(type="boolean", nullable=true)
  192.      */
  193.     private $acceptConditionsUtilisationEtProtectionDonnee;
  194.     /**
  195.      * @ORM\Column(type="boolean", nullable=true)
  196.      */
  197.     private $accepteRecevoirPropositionCommercialMailTelephone;
  198.     /**
  199.      * @ORM\Column(type="boolean", nullable=true)
  200.      */
  201.     private $methodForSignEmail;
  202.     /**
  203.      * @ORM\Column(type="datetime", nullable=true)
  204.      */
  205.     private $dateAutoDeleted;
  206.     /**
  207.      * @ORM\Column(type="datetime", nullable=true)
  208.      */
  209.     private $lastOpenDate;
  210.     /**
  211.      * @ORM\Column(type="boolean", nullable=true)
  212.      */
  213.     private $acceptRecevoirDocumentGarantieEmail;
  214.     /**
  215.      * @ORM\Column(type="boolean", nullable=true)
  216.      */
  217.     private $acceptPropositionCommercialEmail;
  218.     /**
  219.      * @ORM\Column(type="boolean", nullable=true)
  220.      */
  221.     private $acceptPropositionCommercialTelephone;
  222.     /**
  223.      * @ORM\Column(type="boolean", nullable=true)
  224.      */
  225.     private $sellerCanEpargne;
  226.     /**
  227.      * @ORM\Column(type="boolean", nullable=true)
  228.      */
  229.     private $sellerCanRetraite;
  230.     /**
  231.      * @ORM\Column(type="boolean", nullable=true)
  232.      */
  233.     private $sellerInterne;
  234.     /**
  235.      * @ORM\Column(type="boolean", nullable=true)
  236.      */
  237.     private $crmExploitable;
  238.     /**
  239.      * @ORM\Column(type="string", length=190, nullable=true)
  240.      */
  241.     private $crmStatus;
  242.     /**
  243.      * @ORM\Column(type="datetime", nullable=true)
  244.      */
  245.     private $crmStatusDateChange;
  246.     /**
  247.      * @ORM\Column(type="text", nullable=true)
  248.      */
  249.     private $crmNotes;
  250.     /**
  251.      * @ORM\Column(type="string", length=190, nullable=true)
  252.      */
  253.     private $crmTypeSignature;
  254.     /**
  255.      * @var datetime
  256.      * @ORM\Column(name="last_login", type="datetime", nullable=true)
  257.      */
  258.     protected $lastLogin;
  259.     /**
  260.      * @ORM\Column(type="string", length=190, nullable=true)
  261.      */
  262.     private $contactEmail;
  263.     /**
  264.      * @ORM\Column(type="string", length=190, nullable=true)
  265.      */
  266.     private $contactPhone;
  267.     /**
  268.      * @ORM\Column(type="string", length=190, nullable=true)
  269.      */
  270.     private $howFindAboutUs;
  271.     /**
  272.      * @ORM\Column(type="text", nullable=true)
  273.      */
  274.     private $howFindAboutUsOther;
  275.     /**
  276.      * @var crmSeller
  277.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="crmCustomers")
  278.      */
  279.     protected $crmSeller;
  280.     /**
  281.      * @var crmCustomers[]
  282.      * @ORM\OneToMany(targetEntity="App\Entity\User", mappedBy="crmSeller")
  283.      */
  284.     protected $crmCustomers;
  285.     /**
  286.      * @var Memberships[]
  287.      * @ORM\OneToMany(targetEntity="App\Entity\Membership", mappedBy="user")
  288.      */
  289.     protected $memberships;
  290.     /**
  291.      * @var Customers[]
  292.      * @ORM\OneToMany(targetEntity="App\Entity\Membership", mappedBy="seller")
  293.      */
  294.     protected $customers;
  295.     /**
  296.      * @var seller
  297.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="memberships")
  298.      */
  299.     protected $sellerOld;
  300.     /**
  301.      * @var LoginLogs[]
  302.      * @ORM\OneToMany(targetEntity="App\Entity\LoginLog", mappedBy="user")
  303.      */
  304.     protected $loginLogs;
  305.     /**
  306.      * @var cps[]
  307.      * @ORM\OneToMany(targetEntity="App\Entity\Cp", mappedBy="createdBy")
  308.      */
  309.     protected $cps;
  310.     /**
  311.      * @var cpSignatory[]
  312.      * @ORM\OneToMany(targetEntity="App\Entity\Cp", mappedBy="signatoryUser")
  313.      */
  314.     protected $cpSignatory;
  315.     /**
  316.      * @var listDocType[]
  317.      * @ORM\OneToMany(targetEntity="App\Entity\SignatoryDocType", mappedBy="signatory")
  318.      */
  319.     protected $listDocType;
  320.     public function __construct()
  321.     {
  322.         $this->roles = array('ROLE_USER');
  323.         $this->memberShips = new ArrayCollection();
  324.         $this->memberships = new ArrayCollection();
  325.         $this->customers = new ArrayCollection();
  326.         $this->loginLogs = new ArrayCollection();
  327.         $this->cps = new ArrayCollection();
  328.         $this->cpSignatory = new ArrayCollection();
  329.         $this->listDocType = new ArrayCollection();
  330.         $this->crmCustomers = new ArrayCollection();
  331.     }
  332.     // other properties and methods
  333.     public function getEmail()
  334.     {
  335.         return $this->email;
  336.     }
  337.     public function setEmail($email)
  338.     {
  339.         $this->email $email;
  340.     }
  341.     public function getUsername()
  342.     {
  343.         return $this->username;
  344.     }
  345.     public function setUsername($username)
  346.     {
  347.         $this->username $username;
  348.     }
  349.     public function getPlainPassword()
  350.     {
  351.         return $this->plainPassword;
  352.     }
  353.     public function setPlainPassword($password)
  354.     {
  355.         $this->plainPassword $password;
  356.     }
  357.     public function getPassword(): string
  358.     {
  359.         return $this->password;
  360.     }
  361.     public function setPassword($password)
  362.     {
  363.         $this->password $password;
  364.     }
  365.     public function getSalt()
  366.     {
  367.         // The bcrypt and argon2i algorithms don't require a separate salt.
  368.         // You *may* need a real salt if you choose a different encoder.
  369.         return null;
  370.     }
  371.     public function getRoles()
  372.     {
  373.         return $this->roles;
  374.     }
  375.     public function eraseCredentials()
  376.     {
  377.     }
  378.     public function getId(): ?int
  379.     {
  380.         return $this->id;
  381.     }
  382.     public function getLastName(): ?string
  383.     {
  384.         return $this->lastName;
  385.     }
  386.     public function setLastName(?string $lastName): self
  387.     {
  388.         $this->lastName $lastName;
  389.         return $this;
  390.     }
  391.     public function getFirstName(): ?string
  392.     {
  393.         return $this->firstName;
  394.     }
  395.     public function setFirstName(?string $firstName): self
  396.     {
  397.         $this->firstName $firstName;
  398.         return $this;
  399.     }
  400.     public function setRoles(array $roles): self
  401.     {
  402.         $this->roles $roles;
  403.         return $this;
  404.     }
  405.     /**
  406.      * Get roleTranslate
  407.      *
  408.      * @return integer
  409.      */
  410.     public function getRoleMain()
  411.     {
  412.         $main "";
  413.         foreach ($this->getRoles() as $role) {
  414.             if($role != "ROLE_USER"){
  415.                 $main .= $role;
  416.             }
  417.         }
  418.         return $main;
  419.     }
  420.     public function getFullNameSignatory(): ?string
  421.     {
  422.         $lastName '';
  423.         $firstName '';
  424.         $fullName '';
  425.         foreach ($this->getRoles() as $role) {
  426.             if($role === "ROLE_SIGNATORY"){
  427.                 $lastName $this->getLastName();
  428.                 $firstName $this->getFirstName();
  429.                 $fullName $firstName .' '$lastName;
  430.             }
  431.         }
  432.         return $fullName;
  433.     }
  434.     public function getPhone(): ?string
  435.     {
  436.         return $this->phone;
  437.     }
  438.     public function setPhone(?string $phone): self
  439.     {
  440.         $this->phone $phone;
  441.         return $this;
  442.     }
  443.     public function getTokenReset(): ?string
  444.     {
  445.         return $this->tokenReset;
  446.     }
  447.     public function setTokenReset(?string $tokenReset): self
  448.     {
  449.         $this->tokenReset $tokenReset;
  450.         return $this;
  451.     }
  452.     public function getStatus(): ?string
  453.     {
  454.         return $this->status;
  455.     }
  456.     public function setStatus(?string $status): self
  457.     {
  458.         $this->status $status;
  459.         return $this;
  460.     }
  461.     public function addRole($role)
  462.     {
  463.         $role strtoupper($role);
  464.         if ($role === "ROLE_DEFAULT") {
  465.             return $this;
  466.         }
  467.         if (!in_array($role$this->rolestrue)) {
  468.             $this->roles[] = $role;
  469.         }
  470.         return $this;
  471.     }
  472.     public function getCurrentMemberships()
  473.     {
  474.         $currentMemberships null;
  475.         if(count($this->memberships) > 0){
  476.             $currentMemberships $this->memberships[count($this->memberships) -1];
  477.         }
  478.         return $currentMemberships;
  479.     }
  480.     /**
  481.      * @return Collection|Membership[]
  482.      */
  483.     public function getMemberships(): Collection
  484.     {
  485.         return $this->memberships;
  486.     }
  487.     public function addMembership(Membership $membership): self
  488.     {
  489.         if (!$this->memberships->contains($membership)) {
  490.             $this->memberships[] = $membership;
  491.             $membership->setUser($this);
  492.         }
  493.         return $this;
  494.     }
  495.     public function removeMembership(Membership $membership): self
  496.     {
  497.         if ($this->memberships->contains($membership)) {
  498.             $this->memberships->removeElement($membership);
  499.             // set the owning side to null (unless already changed)
  500.             if ($membership->getUser() === $this) {
  501.                 $membership->setUser(null);
  502.             }
  503.         }
  504.         return $this;
  505.     }
  506.     /**
  507.      * @return Collection|User[]
  508.      */
  509.     public function getCustomers(): Collection
  510.     {
  511.         return $this->customers;
  512.     }
  513.     public function addCustomer(User $customer): self
  514.     {
  515.         if (!$this->customers->contains($customer)) {
  516.             $this->customers[] = $customer;
  517.             $customer->setSeller($this);
  518.         }
  519.         return $this;
  520.     }
  521.     public function removeCustomer(User $customer): self
  522.     {
  523.         if ($this->customers->contains($customer)) {
  524.             $this->customers->removeElement($customer);
  525.             // set the owning side to null (unless already changed)
  526.             if ($customer->getSeller() === $this) {
  527.                 $customer->setSeller(null);
  528.             }
  529.         }
  530.         return $this;
  531.     }
  532.     public function getDateCreated(): ?\DateTimeInterface
  533.     {
  534.         return $this->dateCreated;
  535.     }
  536.     public function setDateCreated(\DateTimeInterface $dateCreated): self
  537.     {
  538.         $this->dateCreated $dateCreated;
  539.         return $this;
  540.     }
  541.     public function getCodeConseiller(): ?string
  542.     {
  543.         return $this->codeConseiller;
  544.     }
  545.     public function setCodeConseiller(?string $codeConseiller): self
  546.     {
  547.         $this->codeConseiller $codeConseiller;
  548.         return $this;
  549.     }
  550.     public function getNumeroSiren(): ?string
  551.     {
  552.         return $this->numeroSiren;
  553.     }
  554.     public function setNumeroSiren(?string $numeroSiren): self
  555.     {
  556.         $this->numeroSiren $numeroSiren;
  557.         return $this;
  558.     }
  559.     public function getSexTranslate(): ?string
  560.     {
  561.         $trans "";
  562.         if($this->sex == 0){
  563.             $trans "M";
  564.         }
  565.         else{
  566.             $trans "Mme";
  567.         }
  568.         return $trans;
  569.     }
  570.     public function getSex(): ?string
  571.     {
  572.         return $this->sex;
  573.     }
  574.     public function setSex(?string $sex): self
  575.     {
  576.         $this->sex $sex;
  577.         return $this;
  578.     }
  579.     public function getDateDeNaissance()
  580.     {
  581.         return $this->dateDeNaissance;
  582.     }
  583.     public function setDateDeNaissance($dateDeNaissance): self
  584.     {
  585.         $this->dateDeNaissance $dateDeNaissance;
  586.         return $this;
  587.     }
  588.     public function getNumeroDeVoie(): ?string
  589.     {
  590.         return $this->numeroDeVoie;
  591.     }
  592.     public function setNumeroDeVoie(?string $numeroDeVoie): self
  593.     {
  594.         $this->numeroDeVoie $numeroDeVoie;
  595.         return $this;
  596.     }
  597.     public function getCodePostal(): ?string
  598.     {
  599.         return $this->codePostal;
  600.     }
  601.     public function setCodePostal(?string $codePostal): self
  602.     {
  603.         $this->codePostal $codePostal;
  604.         return $this;
  605.     }
  606.     public function getVille(): ?string
  607.     {
  608.         return $this->ville;
  609.     }
  610.     public function setVille(?string $ville): self
  611.     {
  612.         $this->ville $ville;
  613.         return $this;
  614.     }
  615.     public function getPays(): ?string
  616.     {
  617.         return $this->pays;
  618.     }
  619.     public function setPays(?string $pays): self
  620.     {
  621.         $this->pays $pays;
  622.         return $this;
  623.     }
  624.     public function getAdherentDistributeur(): ?string
  625.     {
  626.         return $this->adherentDistributeur;
  627.     }
  628.     public function setAdherentDistributeur(?string $adherentDistributeur): self
  629.     {
  630.         $this->adherentDistributeur $adherentDistributeur;
  631.         return $this;
  632.     }
  633.     public function getDicIsFile(): ?bool
  634.     {
  635.         return $this->dicIsFile;
  636.     }
  637.     public function setDicIsFile(?bool $dicIsFile): self
  638.     {
  639.         $this->dicIsFile $dicIsFile;
  640.         return $this;
  641.     }
  642.     /**
  643.      * @return Collection|LoginLog[]
  644.      */
  645.     public function getLoginLogs(): Collection
  646.     {
  647.         return $this->loginLogs;
  648.     }
  649.     public function addLoginLog(LoginLog $loginLog): self
  650.     {
  651.         if (!$this->loginLogs->contains($loginLog)) {
  652.             $this->loginLogs[] = $loginLog;
  653.             $loginLog->setUser($this);
  654.         }
  655.         return $this;
  656.     }
  657.     public function removeLoginLog(LoginLog $loginLog): self
  658.     {
  659.         if ($this->loginLogs->contains($loginLog)) {
  660.             $this->loginLogs->removeElement($loginLog);
  661.             // set the owning side to null (unless already changed)
  662.             if ($loginLog->getUser() === $this) {
  663.                 $loginLog->setUser(null);
  664.             }
  665.         }
  666.         return $this;
  667.     }
  668.     public function getPhonePrefix(): ?string
  669.     {
  670.         return $this->phonePrefix;
  671.     }
  672.     public function setPhonePrefix(?string $phonePrefix): self
  673.     {
  674.         $this->phonePrefix $phonePrefix;
  675.         return $this;
  676.     }
  677.     /**
  678.      * @return Collection|Cp[]
  679.      */
  680.     public function getCps(): Collection
  681.     {
  682.         return $this->cps;
  683.     }
  684.     public function addCp(Cp $cp): self
  685.     {
  686.         if (!$this->cps->contains($cp)) {
  687.             $this->cps[] = $cp;
  688.             $cp->setCreatedBy($this);
  689.         }
  690.         return $this;
  691.     }
  692.     public function removeCp(Cp $cp): self
  693.     {
  694.         if ($this->cps->removeElement($cp)) {
  695.             // set the owning side to null (unless already changed)
  696.             if ($cp->getCreatedBy() === $this) {
  697.                 $cp->setCreatedBy(null);
  698.             }
  699.         }
  700.         return $this;
  701.     }
  702.     public function getCpSignatory(): Collection
  703.     {
  704.         return $this->cpSignatory;
  705.     }
  706.     public function addCpSignatory(Cp $cp): self
  707.     {
  708.         if (!$this->CpSignatory->contains($cp)) {
  709.             $this->CpSignatory[] = $cp;
  710.             $cp->setSignatoryUser($this);
  711.         }
  712.         return $this;
  713.     }
  714.     public function removeCpSignatory(Cp $cp): self
  715.     {
  716.         if ($this->CpSignatory->removeElement($cp)) {
  717.             // set the owning side to null (unless already changed)
  718.             if ($cp->getSignatoryUser() === $this) {
  719.                 $cp->setSignatoryUser(null);
  720.             }
  721.         }
  722.         return $this;
  723.     }
  724.     public function getListDocType(): Collection
  725.     {
  726.         return $this->listDocType;
  727.     }
  728.     public function addListDocType(SignatoryDocType $file): self
  729.     {
  730.         if (!$this->listDocType->contains($file)) {
  731.             $this->listDocType[] = $file;
  732.             $file->setSignatory($this);
  733.         }
  734.         return $this;
  735.     }
  736.     public function removeListDocType(SignatoryDocType $file): self
  737.     {
  738.         if ($this->listDocType->removeElement($file)) {
  739.             // set the owning side to null (unless already changed)
  740.             if ($file->getSignatory() === $this) {
  741.                 $file->setSignatory(null);
  742.             }
  743.         }
  744.         return $this;
  745.     }
  746.     public function isDicIsFile(): ?bool
  747.     {
  748.         return $this->dicIsFile;
  749.     }
  750.     public function getCurrentSign(): ?int
  751.     {
  752.         return $this->currentSign;
  753.     }
  754.     public function setCurrentSign(?int $currentSign): self
  755.     {
  756.         $this->currentSign $currentSign;
  757.         return $this;
  758.     }
  759.     public function getTokenSignupContinue(): ?string
  760.     {
  761.         return $this->tokenSignupContinue;
  762.     }
  763.     public function setTokenSignupContinue(?string $tokenSignupContinue): static
  764.     {
  765.         $this->tokenSignupContinue $tokenSignupContinue;
  766.         return $this;
  767.     }
  768.     public function isIsAutoSignup(): ?bool
  769.     {
  770.         return $this->isAutoSignup;
  771.     }
  772.     public function setIsAutoSignup(?bool $isAutoSignup): static
  773.     {
  774.         $this->isAutoSignup $isAutoSignup;
  775.         return $this;
  776.     }
  777.     public function isAcceptConditionsGeneralesUtilisation(): ?bool
  778.     {
  779.         return $this->acceptConditionsGeneralesUtilisation;
  780.     }
  781.     public function setAcceptConditionsGeneralesUtilisation(?bool $acceptConditionsGeneralesUtilisation): static
  782.     {
  783.         $this->acceptConditionsGeneralesUtilisation $acceptConditionsGeneralesUtilisation;
  784.         return $this;
  785.     }
  786.     public function isConnaissanceProtectionDonneesPersonnelles(): ?bool
  787.     {
  788.         return $this->connaissanceProtectionDonneesPersonnelles;
  789.     }
  790.     public function setConnaissanceProtectionDonneesPersonnelles(?bool $connaissanceProtectionDonneesPersonnelles): static
  791.     {
  792.         $this->connaissanceProtectionDonneesPersonnelles $connaissanceProtectionDonneesPersonnelles;
  793.         return $this;
  794.     }
  795.     public function isAccepteRecevoirPropositionCommercialMailTelephone(): ?bool
  796.     {
  797.         return $this->accepteRecevoirPropositionCommercialMailTelephone;
  798.     }
  799.     public function setAccepteRecevoirPropositionCommercialMailTelephone(?bool $accepteRecevoirPropositionCommercialMailTelephone): static
  800.     {
  801.         $this->accepteRecevoirPropositionCommercialMailTelephone $accepteRecevoirPropositionCommercialMailTelephone;
  802.         return $this;
  803.     }
  804.     public function getStepSignup(): ?string
  805.     {
  806.         return $this->stepSignup;
  807.     }
  808.     public function setStepSignup(?string $stepSignup): static
  809.     {
  810.         $this->stepSignup $stepSignup;
  811.         return $this;
  812.     }
  813.     public function isAdresseFiscaleFrance(): ?bool
  814.     {
  815.         return $this->adresseFiscaleFrance;
  816.     }
  817.     public function setAdresseFiscaleFrance(?bool $adresseFiscaleFrance): static
  818.     {
  819.         $this->adresseFiscaleFrance $adresseFiscaleFrance;
  820.         return $this;
  821.     }
  822.     public function getAutoSignFolderNumber(): ?string
  823.     {
  824.         return $this->autoSignFolderNumber;
  825.     }
  826.     public function setAutoSignFolderNumber(?string $autoSignFolderNumber): static
  827.     {
  828.         $this->autoSignFolderNumber $autoSignFolderNumber;
  829.         return $this;
  830.     }
  831.     public function isSendMailReminder7(): ?bool
  832.     {
  833.         return $this->sendMailReminder7;
  834.     }
  835.     public function setSendMailReminder7(?bool $sendMailReminder7): static
  836.     {
  837.         $this->sendMailReminder7 $sendMailReminder7;
  838.         return $this;
  839.     }
  840.     public function isSendMailReminder14(): ?bool
  841.     {
  842.         return $this->sendMailReminder14;
  843.     }
  844.     public function setSendMailReminder14(?bool $sendMailReminder14): static
  845.     {
  846.         $this->sendMailReminder14 $sendMailReminder14;
  847.         return $this;
  848.     }
  849.     public function isMethodForSignEmail(): ?bool
  850.     {
  851.         return $this->methodForSignEmail;
  852.     }
  853.     public function setMethodForSignEmail(?bool $methodForSignEmail): static
  854.     {
  855.         $this->methodForSignEmail $methodForSignEmail;
  856.         return $this;
  857.     }
  858.     public function isAcceptRecevoirDocumentGarantieEmail(): ?bool
  859.     {
  860.         return $this->acceptRecevoirDocumentGarantieEmail;
  861.     }
  862.     public function setAcceptRecevoirDocumentGarantieEmail(?bool $acceptRecevoirDocumentGarantieEmail): static
  863.     {
  864.         $this->acceptRecevoirDocumentGarantieEmail $acceptRecevoirDocumentGarantieEmail;
  865.         return $this;
  866.     }
  867.     public function isAcceptPropositionCommercialEmail(): ?bool
  868.     {
  869.         return $this->acceptPropositionCommercialEmail;
  870.     }
  871.     public function setAcceptPropositionCommercialEmail(?bool $acceptPropositionCommercialEmail): static
  872.     {
  873.         $this->acceptPropositionCommercialEmail $acceptPropositionCommercialEmail;
  874.         return $this;
  875.     }
  876.     public function isAcceptPropositionCommercialTelephone(): ?bool
  877.     {
  878.         return $this->acceptPropositionCommercialTelephone;
  879.     }
  880.     public function setAcceptPropositionCommercialTelephone(?bool $acceptPropositionCommercialTelephone): static
  881.     {
  882.         $this->acceptPropositionCommercialTelephone $acceptPropositionCommercialTelephone;
  883.         return $this;
  884.     }
  885.     public function getDateAutoDeleted(): ?\DateTimeInterface
  886.     {
  887.         return $this->dateAutoDeleted;
  888.     }
  889.     public function setDateAutoDeleted(?\DateTimeInterface $dateAutoDeleted): static
  890.     {
  891.         $this->dateAutoDeleted $dateAutoDeleted;
  892.         return $this;
  893.     }
  894.     public function isSellerCanEpargne(): ?bool
  895.     {
  896.         return $this->sellerCanEpargne;
  897.     }
  898.     public function setSellerCanEpargne(?bool $sellerCanEpargne): static
  899.     {
  900.         $this->sellerCanEpargne $sellerCanEpargne;
  901.         return $this;
  902.     }
  903.     public function isSellerCanRetraite(): ?bool
  904.     {
  905.         return $this->sellerCanRetraite;
  906.     }
  907.     public function setSellerCanRetraite(?bool $sellerCanRetraite): static
  908.     {
  909.         $this->sellerCanRetraite $sellerCanRetraite;
  910.         return $this;
  911.     }
  912.     public function getSellerOld(): ?self
  913.     {
  914.         return $this->sellerOld;
  915.     }
  916.     public function setSellerOld(?self $sellerOld): static
  917.     {
  918.         $this->sellerOld $sellerOld;
  919.         return $this;
  920.     }
  921.     public function isSellerInterne(): ?bool
  922.     {
  923.         return $this->sellerInterne;
  924.     }
  925.     public function setSellerInterne(?bool $sellerInterne): static
  926.     {
  927.         $this->sellerInterne $sellerInterne;
  928.         return $this;
  929.     }
  930.     public function getSendMailReminder7Date(): ?\DateTimeInterface
  931.     {
  932.         return $this->sendMailReminder7Date;
  933.     }
  934.     public function setSendMailReminder7Date(?\DateTimeInterface $sendMailReminder7Date): static
  935.     {
  936.         $this->sendMailReminder7Date $sendMailReminder7Date;
  937.         return $this;
  938.     }
  939.     public function getLastOpenDate(): ?\DateTimeInterface
  940.     {
  941.         return $this->lastOpenDate;
  942.     }
  943.     public function setLastOpenDate(?\DateTimeInterface $lastOpenDate): static
  944.     {
  945.         $this->lastOpenDate $lastOpenDate;
  946.         return $this;
  947.     }
  948.     public function isCrmExploitable(): ?bool
  949.     {
  950.         return $this->crmExploitable;
  951.     }
  952.     public function setCrmExploitable(?bool $crmExploitable): static
  953.     {
  954.         $this->crmExploitable $crmExploitable;
  955.         return $this;
  956.     }
  957.     public function getCrmStatus(): ?string
  958.     {
  959.         return $this->crmStatus;
  960.     }
  961.     public function setCrmStatus(?string $crmStatus): static
  962.     {
  963.         $this->crmStatus $crmStatus;
  964.         return $this;
  965.     }
  966.     public function getCrmStatusDateChange(): ?\DateTimeInterface
  967.     {
  968.         return $this->crmStatusDateChange;
  969.     }
  970.     public function setCrmStatusDateChange(?\DateTimeInterface $crmStatusDateChange): static
  971.     {
  972.         $this->crmStatusDateChange $crmStatusDateChange;
  973.         return $this;
  974.     }
  975.     public function getCrmNotes(): ?string
  976.     {
  977.         return $this->crmNotes;
  978.     }
  979.     public function setCrmNotes(?string $crmNotes): static
  980.     {
  981.         $this->crmNotes $crmNotes;
  982.         return $this;
  983.     }
  984.     public function getCrmTypeSignature(): ?string
  985.     {
  986.         return $this->crmTypeSignature;
  987.     }
  988.     public function setCrmTypeSignature(?string $crmTypeSignature): static
  989.     {
  990.         $this->crmTypeSignature $crmTypeSignature;
  991.         return $this;
  992.     }
  993.     public function getCrmSeller(): ?self
  994.     {
  995.         return $this->crmSeller;
  996.     }
  997.     public function setCrmSeller(?self $crmSeller): static
  998.     {
  999.         $this->crmSeller $crmSeller;
  1000.         return $this;
  1001.     }
  1002.     /**
  1003.      * @return Collection<int, User>
  1004.      */
  1005.     public function getCrmCustomers(): Collection
  1006.     {
  1007.         return $this->crmCustomers;
  1008.     }
  1009.     public function addCrmCustomer(User $crmCustomer): static
  1010.     {
  1011.         if (!$this->crmCustomers->contains($crmCustomer)) {
  1012.             $this->crmCustomers->add($crmCustomer);
  1013.             $crmCustomer->setCrmSeller($this);
  1014.         }
  1015.         return $this;
  1016.     }
  1017.     public function removeCrmCustomer(User $crmCustomer): static
  1018.     {
  1019.         if ($this->crmCustomers->removeElement($crmCustomer)) {
  1020.             // set the owning side to null (unless already changed)
  1021.             if ($crmCustomer->getCrmSeller() === $this) {
  1022.                 $crmCustomer->setCrmSeller(null);
  1023.             }
  1024.         }
  1025.         return $this;
  1026.     }
  1027.     public function getLastLogin(): ?\DateTimeInterface
  1028.     {
  1029.         return $this->lastLogin;
  1030.     }
  1031.     public function setLastLogin(?\DateTimeInterface $lastLogin): static
  1032.     {
  1033.         $this->lastLogin $lastLogin;
  1034.         return $this;
  1035.     }
  1036.     public function getContactEmail(): ?string
  1037.     {
  1038.         return $this->contactEmail;
  1039.     }
  1040.     public function setContactEmail(?string $contactEmail): static
  1041.     {
  1042.         $this->contactEmail $contactEmail;
  1043.         return $this;
  1044.     }
  1045.     public function getContactPhone(): ?string
  1046.     {
  1047.         return $this->contactPhone;
  1048.     }
  1049.     public function setContactPhone(?string $contactPhone): static
  1050.     {
  1051.         $this->contactPhone $contactPhone;
  1052.         return $this;
  1053.     }
  1054.     public function isAcceptConditionsUtilisationEtProtectionDonnee(): ?bool
  1055.     {
  1056.         return $this->acceptConditionsUtilisationEtProtectionDonnee;
  1057.     }
  1058.     public function setAcceptConditionsUtilisationEtProtectionDonnee(?bool $acceptConditionsUtilisationEtProtectionDonnee): static
  1059.     {
  1060.         $this->acceptConditionsUtilisationEtProtectionDonnee $acceptConditionsUtilisationEtProtectionDonnee;
  1061.         return $this;
  1062.     }
  1063.     public function getHowFindAboutUs(): ?string
  1064.     {
  1065.         return $this->howFindAboutUs;
  1066.     }
  1067.     public function setHowFindAboutUs(?string $howFindAboutUs): static
  1068.     {
  1069.         $this->howFindAboutUs $howFindAboutUs;
  1070.         return $this;
  1071.     }
  1072.     public function getHowFindAboutUsOther(): ?string
  1073.     {
  1074.         return $this->howFindAboutUsOther;
  1075.     }
  1076.     public function setHowFindAboutUsOther(?string $howFindAboutUsOther): static
  1077.     {
  1078.         $this->howFindAboutUsOther $howFindAboutUsOther;
  1079.         return $this;
  1080.     }
  1081.     public function isSendMailReminder3(): ?bool
  1082.     {
  1083.         return $this->sendMailReminder3;
  1084.     }
  1085.     public function setSendMailReminder3(?bool $sendMailReminder3): static
  1086.     {
  1087.         $this->sendMailReminder3 $sendMailReminder3;
  1088.         return $this;
  1089.     }
  1090.     public function getSendMailReminder3Date(): ?\DateTimeInterface
  1091.     {
  1092.         return $this->sendMailReminder3Date;
  1093.     }
  1094.     public function setSendMailReminder3Date(?\DateTimeInterface $sendMailReminder3Date): static
  1095.     {
  1096.         $this->sendMailReminder3Date $sendMailReminder3Date;
  1097.         return $this;
  1098.     }
  1099.     public function isSendMailReminder12(): ?bool
  1100.     {
  1101.         return $this->sendMailReminder12;
  1102.     }
  1103.     public function setSendMailReminder12(?bool $sendMailReminder12): static
  1104.     {
  1105.         $this->sendMailReminder12 $sendMailReminder12;
  1106.         return $this;
  1107.     }
  1108.     public function getSendMailReminder12Date(): ?\DateTimeInterface
  1109.     {
  1110.         return $this->sendMailReminder12Date;
  1111.     }
  1112.     public function setSendMailReminder12Date(?\DateTimeInterface $sendMailReminder12Date): static
  1113.     {
  1114.         $this->sendMailReminder12Date $sendMailReminder12Date;
  1115.         return $this;
  1116.     }
  1117. }