src/Entity/User.php line 23

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