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 $sendMailReminder7;
  150.     /**
  151.      * @ORM\Column(type="datetime", nullable=true)
  152.      */
  153.     private $sendMailReminder7Date;
  154.     /**
  155.      * @ORM\Column(type="boolean", nullable=true)
  156.      */
  157.     private $sendMailReminder14;
  158.     /**
  159.      * @ORM\Column(type="string", length=190, nullable=true)
  160.      */
  161.     private $autoSignFolderNumber;
  162.     /**
  163.      * @ORM\Column(type="boolean", nullable=true)
  164.      */
  165.     private $adresseFiscaleFrance;
  166.     /**
  167.      * @ORM\Column(type="boolean", nullable=true)
  168.      */
  169.     private $acceptConditionsGeneralesUtilisation;
  170.     /**
  171.      * @ORM\Column(type="boolean", nullable=true)
  172.      */
  173.     private $connaissanceProtectionDonneesPersonnelles;
  174.     /**
  175.      * @ORM\Column(type="boolean", nullable=true)
  176.      */
  177.     private $accepteRecevoirPropositionCommercialMailTelephone;
  178.     /**
  179.      * @ORM\Column(type="boolean", nullable=true)
  180.      */
  181.     private $methodForSignEmail;
  182.     /**
  183.      * @ORM\Column(type="datetime", nullable=true)
  184.      */
  185.     private $dateAutoDeleted;
  186.     /**
  187.      * @ORM\Column(type="datetime", nullable=true)
  188.      */
  189.     private $lastOpenDate;
  190.     /**
  191.      * @ORM\Column(type="boolean", nullable=true)
  192.      */
  193.     private $acceptRecevoirDocumentGarantieEmail;
  194.     /**
  195.      * @ORM\Column(type="boolean", nullable=true)
  196.      */
  197.     private $acceptPropositionCommercialEmail;
  198.     /**
  199.      * @ORM\Column(type="boolean", nullable=true)
  200.      */
  201.     private $acceptPropositionCommercialTelephone;
  202.     /**
  203.      * @ORM\Column(type="boolean", nullable=true)
  204.      */
  205.     private $sellerCanEpargne;
  206.     /**
  207.      * @ORM\Column(type="boolean", nullable=true)
  208.      */
  209.     private $sellerCanRetraite;
  210.     /**
  211.      * @ORM\Column(type="boolean", nullable=true)
  212.      */
  213.     private $sellerInterne;
  214.     /**
  215.      * @ORM\Column(type="boolean", nullable=true)
  216.      */
  217.     private $crmExploitable;
  218.     /**
  219.      * @ORM\Column(type="string", length=190, nullable=true)
  220.      */
  221.     private $crmStatus;
  222.     /**
  223.      * @ORM\Column(type="datetime", nullable=true)
  224.      */
  225.     private $crmStatusDateChange;
  226.     /**
  227.      * @ORM\Column(type="text", nullable=true)
  228.      */
  229.     private $crmNotes;
  230.     /**
  231.      * @ORM\Column(type="string", length=190, nullable=true)
  232.      */
  233.     private $crmTypeSignature;
  234.     /**
  235.      * @var datetime
  236.      * @ORM\Column(name="last_login", type="datetime", nullable=true)
  237.      */
  238.     protected $lastLogin;
  239.     /**
  240.      * @var crmSeller
  241.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="crmCustomers")
  242.      */
  243.     protected $crmSeller;
  244.     /**
  245.      * @var crmCustomers[]
  246.      * @ORM\OneToMany(targetEntity="App\Entity\User", mappedBy="crmSeller")
  247.      */
  248.     protected $crmCustomers;
  249.     /**
  250.      * @var Memberships[]
  251.      * @ORM\OneToMany(targetEntity="App\Entity\Membership", mappedBy="user")
  252.      */
  253.     protected $memberships;
  254.     /**
  255.      * @var Customers[]
  256.      * @ORM\OneToMany(targetEntity="App\Entity\Membership", mappedBy="seller")
  257.      */
  258.     protected $customers;
  259.     /**
  260.      * @var seller
  261.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="memberships")
  262.      */
  263.     protected $sellerOld;
  264.     /**
  265.      * @var LoginLogs[]
  266.      * @ORM\OneToMany(targetEntity="App\Entity\LoginLog", mappedBy="user")
  267.      */
  268.     protected $loginLogs;
  269.     /**
  270.      * @var cps[]
  271.      * @ORM\OneToMany(targetEntity="App\Entity\Cp", mappedBy="createdBy")
  272.      */
  273.     protected $cps;
  274.     /**
  275.      * @var cpSignatory[]
  276.      * @ORM\OneToMany(targetEntity="App\Entity\Cp", mappedBy="signatoryUser")
  277.      */
  278.     protected $cpSignatory;
  279.     /**
  280.      * @var listDocType[]
  281.      * @ORM\OneToMany(targetEntity="App\Entity\SignatoryDocType", mappedBy="signatory")
  282.      */
  283.     protected $listDocType;
  284.     public function __construct()
  285.     {
  286.         $this->roles = array('ROLE_USER');
  287.         $this->memberShips = new ArrayCollection();
  288.         $this->memberships = new ArrayCollection();
  289.         $this->customers = new ArrayCollection();
  290.         $this->loginLogs = new ArrayCollection();
  291.         $this->cps = new ArrayCollection();
  292.         $this->cpSignatory = new ArrayCollection();
  293.         $this->listDocType = new ArrayCollection();
  294.         $this->crmCustomers = new ArrayCollection();
  295.     }
  296.     // other properties and methods
  297.     public function getEmail()
  298.     {
  299.         return $this->email;
  300.     }
  301.     public function setEmail($email)
  302.     {
  303.         $this->email $email;
  304.     }
  305.     public function getUsername()
  306.     {
  307.         return $this->username;
  308.     }
  309.     public function setUsername($username)
  310.     {
  311.         $this->username $username;
  312.     }
  313.     public function getPlainPassword()
  314.     {
  315.         return $this->plainPassword;
  316.     }
  317.     public function setPlainPassword($password)
  318.     {
  319.         $this->plainPassword $password;
  320.     }
  321.     public function getPassword(): string
  322.     {
  323.         return $this->password;
  324.     }
  325.     public function setPassword($password)
  326.     {
  327.         $this->password $password;
  328.     }
  329.     public function getSalt()
  330.     {
  331.         // The bcrypt and argon2i algorithms don't require a separate salt.
  332.         // You *may* need a real salt if you choose a different encoder.
  333.         return null;
  334.     }
  335.     public function getRoles()
  336.     {
  337.         return $this->roles;
  338.     }
  339.     public function eraseCredentials()
  340.     {
  341.     }
  342.     public function getId(): ?int
  343.     {
  344.         return $this->id;
  345.     }
  346.     public function getLastName(): ?string
  347.     {
  348.         return $this->lastName;
  349.     }
  350.     public function setLastName(?string $lastName): self
  351.     {
  352.         $this->lastName $lastName;
  353.         return $this;
  354.     }
  355.     public function getFirstName(): ?string
  356.     {
  357.         return $this->firstName;
  358.     }
  359.     public function setFirstName(?string $firstName): self
  360.     {
  361.         $this->firstName $firstName;
  362.         return $this;
  363.     }
  364.     public function setRoles(array $roles): self
  365.     {
  366.         $this->roles $roles;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get roleTranslate
  371.      *
  372.      * @return integer
  373.      */
  374.     public function getRoleMain()
  375.     {
  376.         $main "";
  377.         foreach ($this->getRoles() as $role) {
  378.             if($role != "ROLE_USER"){
  379.                 $main .= $role;
  380.             }
  381.         }
  382.         return $main;
  383.     }
  384.     public function getFullNameSignatory(): ?string
  385.     {
  386.         $lastName '';
  387.         $firstName '';
  388.         $fullName '';
  389.         foreach ($this->getRoles() as $role) {
  390.             if($role === "ROLE_SIGNATORY"){
  391.                 $lastName $this->getLastName();
  392.                 $firstName $this->getFirstName();
  393.                 $fullName $firstName .' '$lastName;
  394.             }
  395.         }
  396.         return $fullName;
  397.     }
  398.     public function getPhone(): ?string
  399.     {
  400.         return $this->phone;
  401.     }
  402.     public function setPhone(?string $phone): self
  403.     {
  404.         $this->phone $phone;
  405.         return $this;
  406.     }
  407.     public function getTokenReset(): ?string
  408.     {
  409.         return $this->tokenReset;
  410.     }
  411.     public function setTokenReset(?string $tokenReset): self
  412.     {
  413.         $this->tokenReset $tokenReset;
  414.         return $this;
  415.     }
  416.     public function getStatus(): ?string
  417.     {
  418.         return $this->status;
  419.     }
  420.     public function setStatus(?string $status): self
  421.     {
  422.         $this->status $status;
  423.         return $this;
  424.     }
  425.     public function addRole($role)
  426.     {
  427.         $role strtoupper($role);
  428.         if ($role === "ROLE_DEFAULT") {
  429.             return $this;
  430.         }
  431.         if (!in_array($role$this->rolestrue)) {
  432.             $this->roles[] = $role;
  433.         }
  434.         return $this;
  435.     }
  436.     public function getCurrentMemberships()
  437.     {
  438.         $currentMemberships null;
  439.         if(count($this->memberships) > 0){
  440.             $currentMemberships $this->memberships[count($this->memberships) -1];
  441.         }
  442.         return $currentMemberships;
  443.     }
  444.     /**
  445.      * @return Collection|Membership[]
  446.      */
  447.     public function getMemberships(): Collection
  448.     {
  449.         return $this->memberships;
  450.     }
  451.     public function addMembership(Membership $membership): self
  452.     {
  453.         if (!$this->memberships->contains($membership)) {
  454.             $this->memberships[] = $membership;
  455.             $membership->setUser($this);
  456.         }
  457.         return $this;
  458.     }
  459.     public function removeMembership(Membership $membership): self
  460.     {
  461.         if ($this->memberships->contains($membership)) {
  462.             $this->memberships->removeElement($membership);
  463.             // set the owning side to null (unless already changed)
  464.             if ($membership->getUser() === $this) {
  465.                 $membership->setUser(null);
  466.             }
  467.         }
  468.         return $this;
  469.     }
  470.     /**
  471.      * @return Collection|User[]
  472.      */
  473.     public function getCustomers(): Collection
  474.     {
  475.         return $this->customers;
  476.     }
  477.     public function addCustomer(User $customer): self
  478.     {
  479.         if (!$this->customers->contains($customer)) {
  480.             $this->customers[] = $customer;
  481.             $customer->setSeller($this);
  482.         }
  483.         return $this;
  484.     }
  485.     public function removeCustomer(User $customer): self
  486.     {
  487.         if ($this->customers->contains($customer)) {
  488.             $this->customers->removeElement($customer);
  489.             // set the owning side to null (unless already changed)
  490.             if ($customer->getSeller() === $this) {
  491.                 $customer->setSeller(null);
  492.             }
  493.         }
  494.         return $this;
  495.     }
  496.     public function getDateCreated(): ?\DateTimeInterface
  497.     {
  498.         return $this->dateCreated;
  499.     }
  500.     public function setDateCreated(\DateTimeInterface $dateCreated): self
  501.     {
  502.         $this->dateCreated $dateCreated;
  503.         return $this;
  504.     }
  505.     public function getCodeConseiller(): ?string
  506.     {
  507.         return $this->codeConseiller;
  508.     }
  509.     public function setCodeConseiller(?string $codeConseiller): self
  510.     {
  511.         $this->codeConseiller $codeConseiller;
  512.         return $this;
  513.     }
  514.     public function getNumeroSiren(): ?string
  515.     {
  516.         return $this->numeroSiren;
  517.     }
  518.     public function setNumeroSiren(?string $numeroSiren): self
  519.     {
  520.         $this->numeroSiren $numeroSiren;
  521.         return $this;
  522.     }
  523.     public function getSexTranslate(): ?string
  524.     {
  525.         $trans "";
  526.         if($this->sex == 0){
  527.             $trans "M";
  528.         }
  529.         else{
  530.             $trans "Mme";
  531.         }
  532.         return $trans;
  533.     }
  534.     public function getSex(): ?string
  535.     {
  536.         return $this->sex;
  537.     }
  538.     public function setSex(?string $sex): self
  539.     {
  540.         $this->sex $sex;
  541.         return $this;
  542.     }
  543.     public function getDateDeNaissance()
  544.     {
  545.         return $this->dateDeNaissance;
  546.     }
  547.     public function setDateDeNaissance($dateDeNaissance): self
  548.     {
  549.         $this->dateDeNaissance $dateDeNaissance;
  550.         return $this;
  551.     }
  552.     public function getNumeroDeVoie(): ?string
  553.     {
  554.         return $this->numeroDeVoie;
  555.     }
  556.     public function setNumeroDeVoie(?string $numeroDeVoie): self
  557.     {
  558.         $this->numeroDeVoie $numeroDeVoie;
  559.         return $this;
  560.     }
  561.     public function getCodePostal(): ?string
  562.     {
  563.         return $this->codePostal;
  564.     }
  565.     public function setCodePostal(?string $codePostal): self
  566.     {
  567.         $this->codePostal $codePostal;
  568.         return $this;
  569.     }
  570.     public function getVille(): ?string
  571.     {
  572.         return $this->ville;
  573.     }
  574.     public function setVille(?string $ville): self
  575.     {
  576.         $this->ville $ville;
  577.         return $this;
  578.     }
  579.     public function getPays(): ?string
  580.     {
  581.         return $this->pays;
  582.     }
  583.     public function setPays(?string $pays): self
  584.     {
  585.         $this->pays $pays;
  586.         return $this;
  587.     }
  588.     public function getAdherentDistributeur(): ?string
  589.     {
  590.         return $this->adherentDistributeur;
  591.     }
  592.     public function setAdherentDistributeur(?string $adherentDistributeur): self
  593.     {
  594.         $this->adherentDistributeur $adherentDistributeur;
  595.         return $this;
  596.     }
  597.     public function getDicIsFile(): ?bool
  598.     {
  599.         return $this->dicIsFile;
  600.     }
  601.     public function setDicIsFile(?bool $dicIsFile): self
  602.     {
  603.         $this->dicIsFile $dicIsFile;
  604.         return $this;
  605.     }
  606.     /**
  607.      * @return Collection|LoginLog[]
  608.      */
  609.     public function getLoginLogs(): Collection
  610.     {
  611.         return $this->loginLogs;
  612.     }
  613.     public function addLoginLog(LoginLog $loginLog): self
  614.     {
  615.         if (!$this->loginLogs->contains($loginLog)) {
  616.             $this->loginLogs[] = $loginLog;
  617.             $loginLog->setUser($this);
  618.         }
  619.         return $this;
  620.     }
  621.     public function removeLoginLog(LoginLog $loginLog): self
  622.     {
  623.         if ($this->loginLogs->contains($loginLog)) {
  624.             $this->loginLogs->removeElement($loginLog);
  625.             // set the owning side to null (unless already changed)
  626.             if ($loginLog->getUser() === $this) {
  627.                 $loginLog->setUser(null);
  628.             }
  629.         }
  630.         return $this;
  631.     }
  632.     public function getPhonePrefix(): ?string
  633.     {
  634.         return $this->phonePrefix;
  635.     }
  636.     public function setPhonePrefix(?string $phonePrefix): self
  637.     {
  638.         $this->phonePrefix $phonePrefix;
  639.         return $this;
  640.     }
  641.     /**
  642.      * @return Collection|Cp[]
  643.      */
  644.     public function getCps(): Collection
  645.     {
  646.         return $this->cps;
  647.     }
  648.     public function addCp(Cp $cp): self
  649.     {
  650.         if (!$this->cps->contains($cp)) {
  651.             $this->cps[] = $cp;
  652.             $cp->setCreatedBy($this);
  653.         }
  654.         return $this;
  655.     }
  656.     public function removeCp(Cp $cp): self
  657.     {
  658.         if ($this->cps->removeElement($cp)) {
  659.             // set the owning side to null (unless already changed)
  660.             if ($cp->getCreatedBy() === $this) {
  661.                 $cp->setCreatedBy(null);
  662.             }
  663.         }
  664.         return $this;
  665.     }
  666.     public function getCpSignatory(): Collection
  667.     {
  668.         return $this->cpSignatory;
  669.     }
  670.     public function addCpSignatory(Cp $cp): self
  671.     {
  672.         if (!$this->CpSignatory->contains($cp)) {
  673.             $this->CpSignatory[] = $cp;
  674.             $cp->setSignatoryUser($this);
  675.         }
  676.         return $this;
  677.     }
  678.     public function removeCpSignatory(Cp $cp): self
  679.     {
  680.         if ($this->CpSignatory->removeElement($cp)) {
  681.             // set the owning side to null (unless already changed)
  682.             if ($cp->getSignatoryUser() === $this) {
  683.                 $cp->setSignatoryUser(null);
  684.             }
  685.         }
  686.         return $this;
  687.     }
  688.     public function getListDocType(): Collection
  689.     {
  690.         return $this->listDocType;
  691.     }
  692.     public function addListDocType(SignatoryDocType $file): self
  693.     {
  694.         if (!$this->listDocType->contains($file)) {
  695.             $this->listDocType[] = $file;
  696.             $file->setSignatory($this);
  697.         }
  698.         return $this;
  699.     }
  700.     public function removeListDocType(SignatoryDocType $file): self
  701.     {
  702.         if ($this->listDocType->removeElement($file)) {
  703.             // set the owning side to null (unless already changed)
  704.             if ($file->getSignatory() === $this) {
  705.                 $file->setSignatory(null);
  706.             }
  707.         }
  708.         return $this;
  709.     }
  710.     public function isDicIsFile(): ?bool
  711.     {
  712.         return $this->dicIsFile;
  713.     }
  714.     public function getCurrentSign(): ?int
  715.     {
  716.         return $this->currentSign;
  717.     }
  718.     public function setCurrentSign(?int $currentSign): self
  719.     {
  720.         $this->currentSign $currentSign;
  721.         return $this;
  722.     }
  723.     public function getTokenSignupContinue(): ?string
  724.     {
  725.         return $this->tokenSignupContinue;
  726.     }
  727.     public function setTokenSignupContinue(?string $tokenSignupContinue): static
  728.     {
  729.         $this->tokenSignupContinue $tokenSignupContinue;
  730.         return $this;
  731.     }
  732.     public function isIsAutoSignup(): ?bool
  733.     {
  734.         return $this->isAutoSignup;
  735.     }
  736.     public function setIsAutoSignup(?bool $isAutoSignup): static
  737.     {
  738.         $this->isAutoSignup $isAutoSignup;
  739.         return $this;
  740.     }
  741.     public function isAcceptConditionsGeneralesUtilisation(): ?bool
  742.     {
  743.         return $this->acceptConditionsGeneralesUtilisation;
  744.     }
  745.     public function setAcceptConditionsGeneralesUtilisation(?bool $acceptConditionsGeneralesUtilisation): static
  746.     {
  747.         $this->acceptConditionsGeneralesUtilisation $acceptConditionsGeneralesUtilisation;
  748.         return $this;
  749.     }
  750.     public function isConnaissanceProtectionDonneesPersonnelles(): ?bool
  751.     {
  752.         return $this->connaissanceProtectionDonneesPersonnelles;
  753.     }
  754.     public function setConnaissanceProtectionDonneesPersonnelles(?bool $connaissanceProtectionDonneesPersonnelles): static
  755.     {
  756.         $this->connaissanceProtectionDonneesPersonnelles $connaissanceProtectionDonneesPersonnelles;
  757.         return $this;
  758.     }
  759.     public function isAccepteRecevoirPropositionCommercialMailTelephone(): ?bool
  760.     {
  761.         return $this->accepteRecevoirPropositionCommercialMailTelephone;
  762.     }
  763.     public function setAccepteRecevoirPropositionCommercialMailTelephone(?bool $accepteRecevoirPropositionCommercialMailTelephone): static
  764.     {
  765.         $this->accepteRecevoirPropositionCommercialMailTelephone $accepteRecevoirPropositionCommercialMailTelephone;
  766.         return $this;
  767.     }
  768.     public function getStepSignup(): ?string
  769.     {
  770.         return $this->stepSignup;
  771.     }
  772.     public function setStepSignup(?string $stepSignup): static
  773.     {
  774.         $this->stepSignup $stepSignup;
  775.         return $this;
  776.     }
  777.     public function isAdresseFiscaleFrance(): ?bool
  778.     {
  779.         return $this->adresseFiscaleFrance;
  780.     }
  781.     public function setAdresseFiscaleFrance(?bool $adresseFiscaleFrance): static
  782.     {
  783.         $this->adresseFiscaleFrance $adresseFiscaleFrance;
  784.         return $this;
  785.     }
  786.     public function getAutoSignFolderNumber(): ?string
  787.     {
  788.         return $this->autoSignFolderNumber;
  789.     }
  790.     public function setAutoSignFolderNumber(?string $autoSignFolderNumber): static
  791.     {
  792.         $this->autoSignFolderNumber $autoSignFolderNumber;
  793.         return $this;
  794.     }
  795.     public function isSendMailReminder7(): ?bool
  796.     {
  797.         return $this->sendMailReminder7;
  798.     }
  799.     public function setSendMailReminder7(?bool $sendMailReminder7): static
  800.     {
  801.         $this->sendMailReminder7 $sendMailReminder7;
  802.         return $this;
  803.     }
  804.     public function isSendMailReminder14(): ?bool
  805.     {
  806.         return $this->sendMailReminder14;
  807.     }
  808.     public function setSendMailReminder14(?bool $sendMailReminder14): static
  809.     {
  810.         $this->sendMailReminder14 $sendMailReminder14;
  811.         return $this;
  812.     }
  813.     public function isMethodForSignEmail(): ?bool
  814.     {
  815.         return $this->methodForSignEmail;
  816.     }
  817.     public function setMethodForSignEmail(?bool $methodForSignEmail): static
  818.     {
  819.         $this->methodForSignEmail $methodForSignEmail;
  820.         return $this;
  821.     }
  822.     public function isAcceptRecevoirDocumentGarantieEmail(): ?bool
  823.     {
  824.         return $this->acceptRecevoirDocumentGarantieEmail;
  825.     }
  826.     public function setAcceptRecevoirDocumentGarantieEmail(?bool $acceptRecevoirDocumentGarantieEmail): static
  827.     {
  828.         $this->acceptRecevoirDocumentGarantieEmail $acceptRecevoirDocumentGarantieEmail;
  829.         return $this;
  830.     }
  831.     public function isAcceptPropositionCommercialEmail(): ?bool
  832.     {
  833.         return $this->acceptPropositionCommercialEmail;
  834.     }
  835.     public function setAcceptPropositionCommercialEmail(?bool $acceptPropositionCommercialEmail): static
  836.     {
  837.         $this->acceptPropositionCommercialEmail $acceptPropositionCommercialEmail;
  838.         return $this;
  839.     }
  840.     public function isAcceptPropositionCommercialTelephone(): ?bool
  841.     {
  842.         return $this->acceptPropositionCommercialTelephone;
  843.     }
  844.     public function setAcceptPropositionCommercialTelephone(?bool $acceptPropositionCommercialTelephone): static
  845.     {
  846.         $this->acceptPropositionCommercialTelephone $acceptPropositionCommercialTelephone;
  847.         return $this;
  848.     }
  849.     public function getDateAutoDeleted(): ?\DateTimeInterface
  850.     {
  851.         return $this->dateAutoDeleted;
  852.     }
  853.     public function setDateAutoDeleted(?\DateTimeInterface $dateAutoDeleted): static
  854.     {
  855.         $this->dateAutoDeleted $dateAutoDeleted;
  856.         return $this;
  857.     }
  858.     public function isSellerCanEpargne(): ?bool
  859.     {
  860.         return $this->sellerCanEpargne;
  861.     }
  862.     public function setSellerCanEpargne(?bool $sellerCanEpargne): static
  863.     {
  864.         $this->sellerCanEpargne $sellerCanEpargne;
  865.         return $this;
  866.     }
  867.     public function isSellerCanRetraite(): ?bool
  868.     {
  869.         return $this->sellerCanRetraite;
  870.     }
  871.     public function setSellerCanRetraite(?bool $sellerCanRetraite): static
  872.     {
  873.         $this->sellerCanRetraite $sellerCanRetraite;
  874.         return $this;
  875.     }
  876.     public function getSellerOld(): ?self
  877.     {
  878.         return $this->sellerOld;
  879.     }
  880.     public function setSellerOld(?self $sellerOld): static
  881.     {
  882.         $this->sellerOld $sellerOld;
  883.         return $this;
  884.     }
  885.     public function isSellerInterne(): ?bool
  886.     {
  887.         return $this->sellerInterne;
  888.     }
  889.     public function setSellerInterne(?bool $sellerInterne): static
  890.     {
  891.         $this->sellerInterne $sellerInterne;
  892.         return $this;
  893.     }
  894.     public function getSendMailReminder7Date(): ?\DateTimeInterface
  895.     {
  896.         return $this->sendMailReminder7Date;
  897.     }
  898.     public function setSendMailReminder7Date(?\DateTimeInterface $sendMailReminder7Date): static
  899.     {
  900.         $this->sendMailReminder7Date $sendMailReminder7Date;
  901.         return $this;
  902.     }
  903.     public function getLastOpenDate(): ?\DateTimeInterface
  904.     {
  905.         return $this->lastOpenDate;
  906.     }
  907.     public function setLastOpenDate(?\DateTimeInterface $lastOpenDate): static
  908.     {
  909.         $this->lastOpenDate $lastOpenDate;
  910.         return $this;
  911.     }
  912.     public function isCrmExploitable(): ?bool
  913.     {
  914.         return $this->crmExploitable;
  915.     }
  916.     public function setCrmExploitable(?bool $crmExploitable): static
  917.     {
  918.         $this->crmExploitable $crmExploitable;
  919.         return $this;
  920.     }
  921.     public function getCrmStatus(): ?string
  922.     {
  923.         return $this->crmStatus;
  924.     }
  925.     public function setCrmStatus(?string $crmStatus): static
  926.     {
  927.         $this->crmStatus $crmStatus;
  928.         return $this;
  929.     }
  930.     public function getCrmStatusDateChange(): ?\DateTimeInterface
  931.     {
  932.         return $this->crmStatusDateChange;
  933.     }
  934.     public function setCrmStatusDateChange(?\DateTimeInterface $crmStatusDateChange): static
  935.     {
  936.         $this->crmStatusDateChange $crmStatusDateChange;
  937.         return $this;
  938.     }
  939.     public function getCrmNotes(): ?string
  940.     {
  941.         return $this->crmNotes;
  942.     }
  943.     public function setCrmNotes(?string $crmNotes): static
  944.     {
  945.         $this->crmNotes $crmNotes;
  946.         return $this;
  947.     }
  948.     public function getCrmTypeSignature(): ?string
  949.     {
  950.         return $this->crmTypeSignature;
  951.     }
  952.     public function setCrmTypeSignature(?string $crmTypeSignature): static
  953.     {
  954.         $this->crmTypeSignature $crmTypeSignature;
  955.         return $this;
  956.     }
  957.     public function getCrmSeller(): ?self
  958.     {
  959.         return $this->crmSeller;
  960.     }
  961.     public function setCrmSeller(?self $crmSeller): static
  962.     {
  963.         $this->crmSeller $crmSeller;
  964.         return $this;
  965.     }
  966.     /**
  967.      * @return Collection<int, User>
  968.      */
  969.     public function getCrmCustomers(): Collection
  970.     {
  971.         return $this->crmCustomers;
  972.     }
  973.     public function addCrmCustomer(User $crmCustomer): static
  974.     {
  975.         if (!$this->crmCustomers->contains($crmCustomer)) {
  976.             $this->crmCustomers->add($crmCustomer);
  977.             $crmCustomer->setCrmSeller($this);
  978.         }
  979.         return $this;
  980.     }
  981.     public function removeCrmCustomer(User $crmCustomer): static
  982.     {
  983.         if ($this->crmCustomers->removeElement($crmCustomer)) {
  984.             // set the owning side to null (unless already changed)
  985.             if ($crmCustomer->getCrmSeller() === $this) {
  986.                 $crmCustomer->setCrmSeller(null);
  987.             }
  988.         }
  989.         return $this;
  990.     }
  991.     public function getLastLogin(): ?\DateTimeInterface
  992.     {
  993.         return $this->lastLogin;
  994.     }
  995.     public function setLastLogin(?\DateTimeInterface $lastLogin): static
  996.     {
  997.         $this->lastLogin $lastLogin;
  998.         return $this;
  999.     }
  1000. }