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