src/Entity/Acheteur.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AcheteurRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Doctrine\ORM\Mapping\OneToMany;
  9. #[ORM\Entity(repositoryClassAcheteurRepository::class)]
  10. class Acheteur
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne]
  17.     private ?Events $event null;
  18.     #[ORM\Column(length50)]
  19.     private ?string $nom null;
  20.     #[ORM\Column(length50)]
  21.     private ?string $prenom null;
  22.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  23.     private ?string $note null;
  24.     #[ORM\ManyToOne]
  25.     private ?Couleur $couleur null;
  26.     #[ORM\ManyToOne]
  27.     private ?ModePaiement $modePaiement null;
  28.     #[ORM\Column(length50nullabletrue)]
  29.     private ?string $gererPar null;
  30.     #[ORM\ManyToOne]
  31.     private ?Qualite $qualite null;
  32.     #[ORM\ManyToOne]
  33.     private ?Broker $broker null;
  34.     #[ORM\ManyToOne]
  35.     private ?Paiement $paiement null;
  36.     #[ORM\ManyToOne]
  37.     private ?TypePrepaye $paiementPrepaye null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $addresse null;
  40.     #[ORM\Column(length20nullabletrue)]
  41.     private ?string $cp null;
  42.     #[ORM\Column(length50nullabletrue)]
  43.     private ?string $ville null;
  44.     #[ORM\Column(length100nullabletrue)]
  45.     private ?string $pays null;
  46.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  47.     private ?\DateTimeInterface $dob null;
  48.     #[ORM\Column(length50nullabletrue)]
  49.     private ?string $login null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $password null;
  52.     #[ORM\Column(length255nullabletrue)]
  53.     private ?string $mail_sec null;
  54.     #[ORM\Column(length255nullabletrue)]
  55.     private ?string $old_mail null;
  56.     #[ORM\Column(length255nullabletrue)]
  57.     private ?string $old_mail_sec null;
  58.     #[ORM\Column(length255nullabletrue)]
  59.     private ?string $mail null;
  60.     #[ORM\Column(length255nullabletrue)]
  61.     private ?string $tel null;
  62.     #[ORM\Column(length255nullabletrue)]
  63.     private ?string $note_tel null;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $secret null;
  66.     #[ORM\Column(length255nullabletrue)]
  67.     private ?string $tel_securite null;
  68.     #[ORM\Column(length255nullabletrue)]
  69.     private ?string $tel_securite_sec null;
  70.     #[ORM\Column(length255nullabletrue)]
  71.     private ?string $mail_securite null;
  72.     #[ORM\Column(length255nullabletrue)]
  73.     private ?string $mail_securite_sec null;
  74.     #[ORM\Column(length255nullabletrue)]
  75.     private ?string $mail_transfert null;
  76.     #[ORM\Column(length255nullabletrue)]
  77.     private ?string $mail_transfert_sec null;
  78.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  79.     private ?string $note_login null;
  80.     #[OneToMany(mappedBy'acheteur'targetEntitySerieBillet::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  81.     private Collection $serieBillets;
  82.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  83.     private ?string $commandIp null;
  84.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  85.     private ?string $commandIpNote null;
  86.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  87.     private ?string $commandIp2015 null;
  88.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  89.     private ?string $commandIpNote2015 null;
  90.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  91.     private ?string $commandIp2016 null;
  92.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  93.     private ?string $commandIpNote2016 null;
  94.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  95.     private ?string $commandIp2017 null;
  96.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  97.     private ?string $commandIpNote2017 null;
  98.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  99.     private ?string $commandIp2018 null;
  100.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  101.     private ?string $commandIpNote2018 null;
  102.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  103.     private ?string $commandIp2019 null;
  104.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  105.     private ?string $commandIpNote2019 null;
  106.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  107.     private ?string $commandIp2020 null;
  108.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  109.     private ?string $commandIpNote2020 null;
  110.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  111.     private ?string $commandIp2021 null;
  112.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  113.     private ?string $commandIpNote2021 null;
  114.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  115.     private ?string $commandIp2022 null;
  116.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  117.     private ?string $commandIpNote2022 null;
  118.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  119.     private ?string $commandIp2023 null;
  120.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  121.     private ?string $commandIpNote2023 null;
  122.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  123.     private ?string $download2322 null;
  124.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  125.     private ?string $downloadNote2322 null;
  126.     #[ORM\Column(length255nullabletrue)]
  127.     private ?string $diretctedBy2322 null;
  128.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  129.     private ?string $download2323 null;
  130.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  131.     private ?string $downloadNote2323 null;
  132.     #[ORM\Column(length255nullabletrue)]
  133.     private ?string $diretctedBy2323 null;
  134.     #[ORM\Column(length255nullabletrue)]
  135.     private ?string $noteCb null;
  136.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  137.     private ?string $commandIp2024 null;
  138.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  139.     private ?string $commandIpNote2024 null;
  140.     #[ORM\OneToMany(mappedBy'acheteur'targetEntityCommandeIpAcheteur::class, orphanRemovaltrue)]
  141.     private Collection $commandeIpAcheteurs;
  142.     public function __construct()
  143.     {
  144.         $this->serieBillets = new ArrayCollection();
  145.         $this->commandeIpAcheteurs = new ArrayCollection();
  146.     }
  147.     public function getId(): ?int
  148.     {
  149.         return $this->id;
  150.     }
  151.     public function getEvent(): ?Events
  152.     {
  153.         return $this->event;
  154.     }
  155.     public function setEvent(?Events $event): self
  156.     {
  157.         $this->event $event;
  158.         return $this;
  159.     }
  160.     public function getNom(): ?string
  161.     {
  162.         return $this->nom;
  163.     }
  164.     public function setNom(?string $nom): self
  165.     {
  166.         $this->nom $nom;
  167.         return $this;
  168.     }
  169.     public function getPrenom(): ?string
  170.     {
  171.         return $this->prenom;
  172.     }
  173.     public function setPrenom(string $prenom): self
  174.     {
  175.         $this->prenom $prenom;
  176.         return $this;
  177.     }
  178.     public function getNote(): ?string
  179.     {
  180.         return $this->note;
  181.     }
  182.     public function setNote(?string $note): self
  183.     {
  184.         $this->note $note;
  185.         return $this;
  186.     }
  187.     public function getCouleur(): ?Couleur
  188.     {
  189.         return $this->couleur;
  190.     }
  191.     public function setCouleur(?Couleur $couleur): self
  192.     {
  193.         $this->couleur $couleur;
  194.         return $this;
  195.     }
  196.     public function getModePaiement(): ?ModePaiement
  197.     {
  198.         return $this->modePaiement;
  199.     }
  200.     public function setModePaiement(?ModePaiement $modePaiement): self
  201.     {
  202.         $this->modePaiement $modePaiement;
  203.         return $this;
  204.     }
  205.     public function getGererPar(): ?string
  206.     {
  207.         return $this->gererPar;
  208.     }
  209.     public function setGererPar(?string $gererPar): self
  210.     {
  211.         $this->gererPar $gererPar;
  212.         return $this;
  213.     }
  214.     public function getQualite(): ?Qualite
  215.     {
  216.         return $this->qualite;
  217.     }
  218.     public function setQualite(?Qualite $qualite): self
  219.     {
  220.         $this->qualite $qualite;
  221.         return $this;
  222.     }
  223.     public function getBroker(): ?Broker
  224.     {
  225.         return $this->broker;
  226.     }
  227.     public function setBroker(?Broker $broker): self
  228.     {
  229.         $this->broker $broker;
  230.         return $this;
  231.     }
  232.     public function getPaiement(): ?Paiement
  233.     {
  234.         return $this->paiement;
  235.     }
  236.     public function setPaiement(?Paiement $paiement): self
  237.     {
  238.         $this->paiement $paiement;
  239.         return $this;
  240.     }
  241.     public function getPaiementPrepaye(): ?TypePrepaye
  242.     {
  243.         return $this->paiementPrepaye;
  244.     }
  245.     public function setPaiementPrepaye(?TypePrepaye $paiementPrepaye): self
  246.     {
  247.         $this->paiementPrepaye $paiementPrepaye;
  248.         return $this;
  249.     }
  250.     public function getAddresse(): ?string
  251.     {
  252.         return $this->addresse;
  253.     }
  254.     public function setAddresse(?string $addresse): self
  255.     {
  256.         $this->addresse $addresse;
  257.         return $this;
  258.     }
  259.     public function getCp(): ?string
  260.     {
  261.         return $this->cp;
  262.     }
  263.     public function setCp(?string $cp): self
  264.     {
  265.         $this->cp $cp;
  266.         return $this;
  267.     }
  268.     public function getVille(): ?string
  269.     {
  270.         return $this->ville;
  271.     }
  272.     public function setVille(?string $ville): self
  273.     {
  274.         $this->ville $ville;
  275.         return $this;
  276.     }
  277.     public function getPays(): ?string
  278.     {
  279.         return $this->pays;
  280.     }
  281.     public function setPays(?string $pays): self
  282.     {
  283.         $this->pays $pays;
  284.         return $this;
  285.     }
  286.     public function getDob(): ?\DateTimeInterface
  287.     {
  288.         return $this->dob;
  289.     }
  290.     public function setDob(?\DateTimeInterface $dob): self
  291.     {
  292.         $this->dob $dob;
  293.         return $this;
  294.     }
  295.     public function getLogin(): ?string
  296.     {
  297.         return $this->login;
  298.     }
  299.     public function setLogin(?string $login): self
  300.     {
  301.         $this->login $login;
  302.         return $this;
  303.     }
  304.     public function getPassword(): ?string
  305.     {
  306.         return $this->password;
  307.     }
  308.     public function setPassword(?string $password): self
  309.     {
  310.         $this->password $password;
  311.         return $this;
  312.     }
  313.     public function getMailSec(): ?string
  314.     {
  315.         return $this->mail_sec;
  316.     }
  317.     public function setMailSec(?string $mail_sec): self
  318.     {
  319.         $this->mail_sec $mail_sec;
  320.         return $this;
  321.     }
  322.     public function getOldMail(): ?string
  323.     {
  324.         return $this->old_mail;
  325.     }
  326.     public function setOldMail(?string $old_mail): self
  327.     {
  328.         $this->old_mail $old_mail;
  329.         return $this;
  330.     }
  331.     public function getOldMailSec(): ?string
  332.     {
  333.         return $this->old_mail_sec;
  334.     }
  335.     public function setOldMailSec(?string $old_mail_sec): self
  336.     {
  337.         $this->old_mail_sec $old_mail_sec;
  338.         return $this;
  339.     }
  340.     public function getMail(): ?string
  341.     {
  342.         return $this->mail;
  343.     }
  344.     public function setMail(?string $mail): self
  345.     {
  346.         $this->mail $mail;
  347.         return $this;
  348.     }
  349.     public function getTel(): ?string
  350.     {
  351.         return $this->tel;
  352.     }
  353.     public function setTel(?string $tel): self
  354.     {
  355.         $this->tel $tel;
  356.         return $this;
  357.     }
  358.     public function getNoteTel(): ?string
  359.     {
  360.         return $this->note_tel;
  361.     }
  362.     public function setNoteTel(?string $note_tel): self
  363.     {
  364.         $this->note_tel $note_tel;
  365.         return $this;
  366.     }
  367.     public function getSecret(): ?string
  368.     {
  369.         return $this->secret;
  370.     }
  371.     public function setSecret(?string $secret): self
  372.     {
  373.         $this->secret $secret;
  374.         return $this;
  375.     }
  376.     public function getTelSecurite(): ?string
  377.     {
  378.         return $this->tel_securite;
  379.     }
  380.     public function setTelSecurite(?string $tel_securite): self
  381.     {
  382.         $this->tel_securite $tel_securite;
  383.         return $this;
  384.     }
  385.     public function getTelSecuriteSec(): ?string
  386.     {
  387.         return $this->tel_securite_sec;
  388.     }
  389.     public function setTelSecuriteSec(?string $tel_securite_sec): self
  390.     {
  391.         $this->tel_securite_sec $tel_securite_sec;
  392.         return $this;
  393.     }
  394.     public function getMailSecurite(): ?string
  395.     {
  396.         return $this->mail_securite;
  397.     }
  398.     public function setMailSecurite(?string $mail_securite): self
  399.     {
  400.         $this->mail_securite $mail_securite;
  401.         return $this;
  402.     }
  403.     public function getMailSecuriteSec(): ?string
  404.     {
  405.         return $this->mail_securite_sec;
  406.     }
  407.     public function setMailSecuriteSec(?string $mail_securite_sec): self
  408.     {
  409.         $this->mail_securite_sec $mail_securite_sec;
  410.         return $this;
  411.     }
  412.     public function getMailTransfert(): ?string
  413.     {
  414.         return $this->mail_transfert;
  415.     }
  416.     public function setMailTransfert(?string $mail_transfert): self
  417.     {
  418.         $this->mail_transfert $mail_transfert;
  419.         return $this;
  420.     }
  421.     public function getMailTransfertSec(): ?string
  422.     {
  423.         return $this->mail_transfert_sec;
  424.     }
  425.     public function setMailTransfertSec(?string $mail_transfert_sec): self
  426.     {
  427.         $this->mail_transfert_sec $mail_transfert_sec;
  428.         return $this;
  429.     }
  430.     public function getNoteLogin(): ?string
  431.     {
  432.         return $this->note_login;
  433.     }
  434.     public function setNoteLogin(?string $note_login): self
  435.     {
  436.         $this->note_login $note_login;
  437.         return $this;
  438.     }
  439.     /**
  440.      * @return Collection<int, SerieBillet>
  441.      */
  442.     public function getSerieBillets(): array
  443.     {
  444.         $currentEventId null;
  445.         if (isset($_COOKIE['current_event_id'])) {
  446.             $currentEventId $_COOKIE['current_event_id'];
  447.         }
  448.         $serieBillets = [];
  449.         foreach ($this->serieBillets as $serieBillet) {
  450.             if($serieBillet->getSession()->getEvent()->getId() == $currentEventId) {
  451.                 $serieBillets[] = $serieBillet;
  452.             }
  453.         }
  454.         return $serieBillets;
  455.     }
  456.     public function addSerieBillet(SerieBillet $serieBillet): self
  457.     {
  458.         if (!$this->serieBillets->contains($serieBillet)) {
  459.             $this->serieBillets->add($serieBillet);
  460.             $serieBillet->setAcheteur($this);
  461.         }
  462.         return $this;
  463.     }
  464.     public function removeSerieBillet(SerieBillet $serieBillet): self
  465.     {
  466.         /** @var Billet $billet */
  467.         foreach ($serieBillet->getBillets() as $billet) {
  468.             $billet->setSerieBillet(null);
  469.             $billet->setAcheteur(null);
  470.         }
  471.         if ($this->serieBillets->removeElement($serieBillet)) {
  472.             // set the owning side to null (unless already changed)
  473.             if ($serieBillet->getAcheteur() === $this) {
  474.                 $serieBillet->setAcheteur(null);
  475.             }
  476.         }
  477.         return $this;
  478.     }
  479.     public function getCommandIp(): ?string
  480.     {
  481.         return $this->commandIp;
  482.     }
  483.     public function setCommandIp(?string $commandIp): self
  484.     {
  485.         $this->commandIp $commandIp;
  486.         return $this;
  487.     }
  488.     public function getCommandIpNote(): ?string
  489.     {
  490.         return $this->commandIpNote;
  491.     }
  492.     public function setCommandIpNote(?string $commandIpNote): self
  493.     {
  494.         $this->commandIpNote $commandIpNote;
  495.         return $this;
  496.     }
  497.     public function getCommandIp2015(): ?string
  498.     {
  499.         return $this->commandIp2015;
  500.     }
  501.     public function setCommandIp2015(?string $commandIp2015): self
  502.     {
  503.         $this->commandIp2015 $commandIp2015;
  504.         return $this;
  505.     }
  506.     public function getCommandIpNote2015(): ?string
  507.     {
  508.         return $this->commandIpNote2015;
  509.     }
  510.     public function setCommandIpNote2015(?string $commandIpNote2015): self
  511.     {
  512.         $this->commandIpNote2015 $commandIpNote2015;
  513.         return $this;
  514.     }
  515.     public function getCommandIp2016(): ?string
  516.     {
  517.         return $this->commandIp2016;
  518.     }
  519.     public function setCommandIp2016(?string $commandIp2016): self
  520.     {
  521.         $this->commandIp2016 $commandIp2016;
  522.         return $this;
  523.     }
  524.     public function getCommandIpNote2016(): ?string
  525.     {
  526.         return $this->commandIpNote2016;
  527.     }
  528.     public function setCommandIpNote2016(?string $commandIpNote2016): self
  529.     {
  530.         $this->commandIpNote2016 $commandIpNote2016;
  531.         return $this;
  532.     }
  533.     public function getCommandIp2017(): ?string
  534.     {
  535.         return $this->commandIp2017;
  536.     }
  537.     public function setCommandIp2017(?string $commandIp2017): self
  538.     {
  539.         $this->commandIp2017 $commandIp2017;
  540.         return $this;
  541.     }
  542.     public function getCommandIpNote2017(): ?string
  543.     {
  544.         return $this->commandIpNote2017;
  545.     }
  546.     public function setCommandIpNote2017(?string $commandIpNote2017): self
  547.     {
  548.         $this->commandIpNote2017 $commandIpNote2017;
  549.         return $this;
  550.     }
  551.     public function getCommandIp2018(): ?string
  552.     {
  553.         return $this->commandIp2018;
  554.     }
  555.     public function setCommandIp2018(?string $commandIp2018): self
  556.     {
  557.         $this->commandIp2018 $commandIp2018;
  558.         return $this;
  559.     }
  560.     public function getCommandIpNote2018(): ?string
  561.     {
  562.         return $this->commandIpNote2018;
  563.     }
  564.     public function setCommandIpNote2018(?string $commandIpNote2018): self
  565.     {
  566.         $this->commandIpNote2018 $commandIpNote2018;
  567.         return $this;
  568.     }
  569.     public function getCommandIp2019(): ?string
  570.     {
  571.         return $this->commandIp2019;
  572.     }
  573.     public function setCommandIp2019(?string $commandIp2019): self
  574.     {
  575.         $this->commandIp2019 $commandIp2019;
  576.         return $this;
  577.     }
  578.     public function getCommandIpNote2019(): ?string
  579.     {
  580.         return $this->commandIpNote2019;
  581.     }
  582.     public function setCommandIpNote2019(?string $commandIpNote2019): self
  583.     {
  584.         $this->commandIpNote2019 $commandIpNote2019;
  585.         return $this;
  586.     }
  587.     public function getCommandIp2020(): ?string
  588.     {
  589.         return $this->commandIp2020;
  590.     }
  591.     public function setCommandIp2020(?string $commandIp2020): self
  592.     {
  593.         $this->commandIp2020 $commandIp2020;
  594.         return $this;
  595.     }
  596.     public function getCommandIpNote2020(): ?string
  597.     {
  598.         return $this->commandIpNote2020;
  599.     }
  600.     public function setCommandIpNote2020(?string $commandIpNote2020): self
  601.     {
  602.         $this->commandIpNote2020 $commandIpNote2020;
  603.         return $this;
  604.     }
  605.     public function getCommandIp2021(): ?string
  606.     {
  607.         return $this->commandIp2021;
  608.     }
  609.     public function setCommandIp2021(?string $commandIp2021): self
  610.     {
  611.         $this->commandIp2021 $commandIp2021;
  612.         return $this;
  613.     }
  614.     public function getCommandIpNote2021(): ?string
  615.     {
  616.         return $this->commandIpNote2021;
  617.     }
  618.     public function setCommandIpNote2021(string $commandIpNote2021): self
  619.     {
  620.         $this->commandIpNote2021 $commandIpNote2021;
  621.         return $this;
  622.     }
  623.     public function getCommandIp2022(): ?string
  624.     {
  625.         return $this->commandIp2022;
  626.     }
  627.     public function setCommandIp2022(?string $commandIp2022): self
  628.     {
  629.         $this->commandIp2022 $commandIp2022;
  630.         return $this;
  631.     }
  632.     public function getCommandIpNote2022(): ?string
  633.     {
  634.         return $this->commandIpNote2022;
  635.     }
  636.     public function setCommandIpNote2022(?string $commandIpNote2022): self
  637.     {
  638.         $this->commandIpNote2022 $commandIpNote2022;
  639.         return $this;
  640.     }
  641.     public function getCommandIp2023(): ?string
  642.     {
  643.         return $this->commandIp2023;
  644.     }
  645.     public function setCommandIp2023(?string $commandIp2023): self
  646.     {
  647.         $this->commandIp2023 $commandIp2023;
  648.         return $this;
  649.     }
  650.     public function getCommandIpNote2023(): ?string
  651.     {
  652.         return $this->commandIpNote2023;
  653.     }
  654.     public function setCommandIpNote2023(?string $commandIpNote2023): self
  655.     {
  656.         $this->commandIpNote2023 $commandIpNote2023;
  657.         return $this;
  658.     }
  659.     public function getDownload2322(): ?string
  660.     {
  661.         return $this->download2322;
  662.     }
  663.     public function setDownload2322(?string $download2322): self
  664.     {
  665.         $this->download2322 $download2322;
  666.         return $this;
  667.     }
  668.     public function getDownloadNote2322(): ?string
  669.     {
  670.         return $this->downloadNote2322;
  671.     }
  672.     public function setDownloadNote2322(?string $downloadNote2322): self
  673.     {
  674.         $this->downloadNote2322 $downloadNote2322;
  675.         return $this;
  676.     }
  677.     public function getDiretctedBy2322(): ?string
  678.     {
  679.         return $this->diretctedBy2322;
  680.     }
  681.     public function setDiretctedBy2322(?string $diretctedBy2322): self
  682.     {
  683.         $this->diretctedBy2322 $diretctedBy2322;
  684.         return $this;
  685.     }
  686.     public function getDownload2323(): ?string
  687.     {
  688.         return $this->download2323;
  689.     }
  690.     public function setDownload2323(?string $download2323): self
  691.     {
  692.         $this->download2323 $download2323;
  693.         return $this;
  694.     }
  695.     public function getDownloadNote2323(): ?string
  696.     {
  697.         return $this->downloadNote2323;
  698.     }
  699.     public function setDownloadNote2323(?string $downloadNote2323): self
  700.     {
  701.         $this->downloadNote2323 $downloadNote2323;
  702.         return $this;
  703.     }
  704.     public function getDiretctedBy2323(): ?string
  705.     {
  706.         return $this->diretctedBy2323;
  707.     }
  708.     public function setDiretctedBy2323(?string $diretctedBy2323): self
  709.     {
  710.         $this->diretctedBy2323 $diretctedBy2323;
  711.         return $this;
  712.     }
  713.     public function getNoteCb(): ?string
  714.     {
  715.         return $this->noteCb;
  716.     }
  717.     public function setNoteCb(?string $noteCb): self
  718.     {
  719.         $this->noteCb $noteCb;
  720.         return $this;
  721.     }
  722.     public function __toString()
  723.     {
  724.        return $this->getNom().' '.$this->getPrenom();
  725.     }
  726.     /**
  727.      * @return string|null
  728.      */
  729.     public function getColorCode(): ?string
  730.     {
  731.         // Vérifiez si l'entité COLOR est associée à l'acheteur
  732.         if (null === $this->couleur) {
  733.             return null;
  734.         }
  735.         // Récupérez le code couleur de l'entité COLOR associée
  736.         return $this->couleur->getCode();
  737.     }
  738.     public function getTotalCommandes(?int $eventId null): float
  739.     {
  740.         $total 0;
  741.         /** @var SerieBillet $serieBillet */
  742.         foreach ($this->getSerieBillets() as $serieBillet) {
  743.             if(!$serieBillet->isActive())
  744.                 $total += ($serieBillet->getTarif()*$serieBillet->getNbr()) + $serieBillet->getCommision();
  745.         }
  746.         return $total;
  747.     }
  748.     public function getTotalSerieBillet(?int $eventId null): int
  749.     {
  750.         $total 0;
  751.         /** @var SerieBillet $serieBillet */
  752.         foreach ($this->getSerieBillets() as $serieBillet) {
  753.             if(!$serieBillet->isActive())
  754.                 $total ++;
  755.         }
  756.         return $total;
  757.     }
  758.     public function getTotalBillet(?int $eventId null): int
  759.     {
  760.         $total 0;
  761.         /** @var SerieBillet $serieBillet */
  762.         foreach ($this->getSerieBillets() as $serieBillet) {
  763.             if(!$serieBillet->isActive())
  764.                 $total += $serieBillet->getNbr();
  765.         }
  766.         return $total;
  767.     }
  768.     public function getFullName(): string
  769.     {
  770.         return $this->getPrenom().' '.$this->getNom();
  771.     }
  772.     public function __clone(): void
  773.     {
  774.         if ($this->id) {
  775.             $this->id null;
  776.             $this->event null;
  777.             $this->serieBillets = new ArrayCollection();
  778.         }
  779.     }
  780.     public function getCommandIp2024(): ?string
  781.     {
  782.         return $this->commandIp2024;
  783.     }
  784.     public function setCommandIp2024(?string $commandIp2024): static
  785.     {
  786.         $this->commandIp2024 $commandIp2024;
  787.         return $this;
  788.     }
  789.     public function getCommandIpNote2024(): ?string
  790.     {
  791.         return $this->commandIpNote2024;
  792.     }
  793.     public function setCommandIpNote2024(?string $commandIpNote2024): static
  794.     {
  795.         $this->commandIpNote2024 $commandIpNote2024;
  796.         return $this;
  797.     }
  798.     /**
  799.      * @return Collection<int, CommandeIpAcheteur>
  800.      */
  801.     public function getCommandeIpAcheteurs(): Collection
  802.     {
  803.         return $this->commandeIpAcheteurs;
  804.     }
  805.     public function addCommandeIpAcheteur(CommandeIpAcheteur $commandeIpAcheteur): static
  806.     {
  807.         if (!$this->commandeIpAcheteurs->contains($commandeIpAcheteur)) {
  808.             $this->commandeIpAcheteurs->add($commandeIpAcheteur);
  809.             $commandeIpAcheteur->setAcheteur($this);
  810.         }
  811.         return $this;
  812.     }
  813.     public function removeCommandeIpAcheteur(CommandeIpAcheteur $commandeIpAcheteur): static
  814.     {
  815.         if ($this->commandeIpAcheteurs->removeElement($commandeIpAcheteur)) {
  816.             // set the owning side to null (unless already changed)
  817.             if ($commandeIpAcheteur->getAcheteur() === $this) {
  818.                 $commandeIpAcheteur->setAcheteur(null);
  819.             }
  820.         }
  821.         return $this;
  822.     }
  823. }