src/Entity/Beneficiaire.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BeneficiaireRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=BeneficiaireRepository::class)
  9.  */
  10. class Beneficiaire
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $nom;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $statut;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $adresse;
  30.     /**
  31.      * @ORM\Column(type="string", length=5, nullable=true)
  32.      */
  33.     private $codePostal;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $commune;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $codeCommune;
  42.     /**
  43.      * @ORM\Column(type="string", length=15, nullable=true)
  44.      */
  45.     private $telephone;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $email;
  50.     /**
  51.      * @ORM\Column(type="integer", nullable=true)
  52.      */
  53.     private $ticketRecuNb;
  54.     /**
  55.      * @ORM\Column(type="integer", nullable=true)
  56.      */
  57.     private $ticketUtiliseNb;
  58.     /**
  59.      * @ORM\Column(type="integer", nullable=true)
  60.      */
  61.     private $ticketIndividuelNb;
  62.     /**
  63.      * @ORM\Column(type="integer", nullable=true)
  64.      */
  65.     private $ticketCollectifNb;
  66.     /**
  67.      * @ORM\Column(type="text", nullable=true)
  68.      */
  69.     private $profilDestinataire;
  70.     /**
  71.      * @ORM\Column(type="text", nullable=true)
  72.      */
  73.     private $politiqueDistribution;
  74.     /**
  75.      * @ORM\Column(type="text", nullable=true)
  76.      */
  77.     private $methodeDiffusion;
  78.     /**
  79.      * @ORM\Column(type="text", nullable=true)
  80.      */
  81.     private $diffusionAccompagnement;
  82.     /**
  83.      * @ORM\Column(type="text", nullable=true)
  84.      */
  85.     private $retourPublic;
  86.     /**
  87.      * @ORM\Column(type="text", nullable=true)
  88.      */
  89.     private $remarque;
  90.     /**
  91.      * @ORM\OneToMany(targetEntity=Ticket::class, mappedBy="beneficiaire")
  92.      */
  93.     private $tickets;
  94.     /**
  95.      * @ORM\OneToMany(targetEntity=User::class, mappedBy="beneficiaire")
  96.      */
  97.     private $users;
  98.     /**
  99.      * @ORM\Column(type="string", length=15, nullable=true)
  100.      */
  101.     private $referentCivilite;
  102.     /**
  103.      * @ORM\Column(type="string", length=50, nullable=true)
  104.      */
  105.     private $referentPrenom;
  106.     /**
  107.      * @ORM\Column(type="string", length=50, nullable=true)
  108.      */
  109.     private $referentNom;
  110.     /**
  111.      * @ORM\Column(type="string", length=100, nullable=true)
  112.      */
  113.     private $referentFonction;
  114.     /**
  115.      * @ORM\Column(type="integer", nullable=true)
  116.      */
  117.     private $ticketDiffuseNb;
  118.     /**
  119.      * @ORM\Column(type="string", length=2, nullable=true)
  120.      */
  121.     private $departement;
  122.     /**
  123.      * @ORM\Column(type="string", length=15, nullable=true)
  124.      */
  125.     private $referentTelephone;
  126.     /**
  127.      * @ORM\Column(type="string", length=255, nullable=true)
  128.      */
  129.     private $referentEmail;
  130.     /**
  131.      * @ORM\Column(type="integer", nullable=true)
  132.      */
  133.     private $ticketsCompilesNb;
  134.     /**
  135.      * @ORM\Column(type="integer", nullable=true)
  136.      */
  137.     private $activation;
  138.     public function __construct()
  139.     {
  140.         $this->tickets = new ArrayCollection();
  141.         $this->users = new ArrayCollection();
  142.     }
  143.     public function getId(): ?int
  144.     {
  145.         return $this->id;
  146.     }
  147.     public function getNom(): ?string
  148.     {
  149.         return $this->nom;
  150.     }
  151.     public function setNom(?string $nom): self
  152.     {
  153.         $this->nom $nom;
  154.         return $this;
  155.     }
  156.     public function getStatut(): ?string
  157.     {
  158.         return $this->statut;
  159.     }
  160.     public function setStatut(?string $statut): self
  161.     {
  162.         $this->statut $statut;
  163.         return $this;
  164.     }
  165.     public function getAdresse(): ?string
  166.     {
  167.         return $this->adresse;
  168.     }
  169.     public function setAdresse(?string $adresse): self
  170.     {
  171.         $this->adresse $adresse;
  172.         return $this;
  173.     }
  174.     public function getCodePostal(): ?string
  175.     {
  176.         return $this->codePostal;
  177.     }
  178.     public function setCodePostal(?string $codePostal): self
  179.     {
  180.         $this->codePostal $codePostal;
  181.         return $this;
  182.     }
  183.     public function getCommune(): ?string
  184.     {
  185.         return $this->commune;
  186.     }
  187.     public function setCommune(?string $commune): self
  188.     {
  189.         $this->commune $commune;
  190.         return $this;
  191.     }
  192.     public function getCodeCommune(): ?string
  193.     {
  194.         return $this->codeCommune;
  195.     }
  196.     public function setCodeCommune(string $codeCommune): self
  197.     {
  198.         $this->codeCommune $codeCommune;
  199.         return $this;
  200.     }
  201.     public function getTelephone(): ?string
  202.     {
  203.         return $this->telephone;
  204.     }
  205.     public function setTelephone(?string $telephone): self
  206.     {
  207.         $this->telephone $telephone;
  208.         return $this;
  209.     }
  210.     public function getEmail(): ?string
  211.     {
  212.         return $this->email;
  213.     }
  214.     public function setEmail(?string $email): self
  215.     {
  216.         $this->email $email;
  217.         return $this;
  218.     }
  219.     public function getTicketRecuNb(): ?int
  220.     {
  221.         return $this->ticketRecuNb;
  222.     }
  223.     public function setTicketRecuNb(?int $ticketRecuNb): self
  224.     {
  225.         $this->ticketRecuNb $ticketRecuNb;
  226.         return $this;
  227.     }
  228.     public function getTicketUtiliseNb(): ?int
  229.     {
  230.         return $this->ticketUtiliseNb;
  231.     }
  232.     public function setTicketUtiliseNb(?int $ticketUtiliseNb): self
  233.     {
  234.         $this->ticketUtiliseNb $ticketUtiliseNb;
  235.         return $this;
  236.     }
  237.     public function getTicketIndividuelNb(): ?int
  238.     {
  239.         return $this->ticketIndividuelNb;
  240.     }
  241.     public function setTicketIndividuelNb(?int $ticketIndividuelNb): self
  242.     {
  243.         $this->ticketIndividuelNb $ticketIndividuelNb;
  244.         return $this;
  245.     }
  246.     public function getTicketCollectifNb(): ?int
  247.     {
  248.         return $this->ticketCollectifNb;
  249.     }
  250.     public function setTicketCollectifNb(?int $ticketCollectifNb): self
  251.     {
  252.         $this->ticketCollectifNb $ticketCollectifNb;
  253.         return $this;
  254.     }
  255.     public function getProfilDestinataire(): ?string
  256.     {
  257.         return $this->profilDestinataire;
  258.     }
  259.     public function setProfilDestinataire(?string $profilDestinataire): self
  260.     {
  261.         $this->profilDestinataire $profilDestinataire;
  262.         return $this;
  263.     }
  264.     public function getPolitiqueDistribution(): ?string
  265.     {
  266.         return $this->politiqueDistribution;
  267.     }
  268.     public function setPolitiqueDistribution(?string $politiqueDistribution): self
  269.     {
  270.         $this->politiqueDistribution $politiqueDistribution;
  271.         return $this;
  272.     }
  273.     public function getMethodeDiffusion(): ?string
  274.     {
  275.         return $this->methodeDiffusion;
  276.     }
  277.     public function setMethodeDiffusion(?string $methodeDiffusion): self
  278.     {
  279.         $this->methodeDiffusion $methodeDiffusion;
  280.         return $this;
  281.     }
  282.     public function getDiffusionAccompagnement(): ?string
  283.     {
  284.         return $this->diffusionAccompagnement;
  285.     }
  286.     public function setDiffusionAccompagnement(?string $diffusionAccompagnement): self
  287.     {
  288.         $this->diffusionAccompagnement $diffusionAccompagnement;
  289.         return $this;
  290.     }
  291.     public function getRetourPublic(): ?string
  292.     {
  293.         return $this->retourPublic;
  294.     }
  295.     public function setRetourPublic(?string $retourPublic): self
  296.     {
  297.         $this->retourPublic $retourPublic;
  298.         return $this;
  299.     }
  300.     public function getRemarque(): ?string
  301.     {
  302.         return $this->remarque;
  303.     }
  304.     public function setRemarque(?string $remarque): self
  305.     {
  306.         $this->remarque $remarque;
  307.         return $this;
  308.     }
  309.     /**
  310.      * @return Collection<int, Ticket>
  311.      */
  312.     public function getTickets(): Collection
  313.     {
  314.         return $this->tickets;
  315.     }
  316.     public function addTicket(Ticket $ticket): self
  317.     {
  318.         if (!$this->tickets->contains($ticket)) {
  319.             $this->tickets[] = $ticket;
  320.             $ticket->setBeneficiaire($this);
  321.         }
  322.         return $this;
  323.     }
  324.     public function removeTicket(Ticket $ticket): self
  325.     {
  326.         if ($this->tickets->removeElement($ticket)) {
  327.             // set the owning side to null (unless already changed)
  328.             if ($ticket->getBeneficiaire() === $this) {
  329.                 $ticket->setBeneficiaire(null);
  330.             }
  331.         }
  332.         return $this;
  333.     }
  334.     /**
  335.      * @return Collection<int, User>
  336.      */
  337.     public function getUsers(): Collection
  338.     {
  339.         return $this->users;
  340.     }
  341.     public function addUser(User $user): self
  342.     {
  343.         if (!$this->users->contains($user)) {
  344.             $this->users[] = $user;
  345.             $user->setBeneficiaire($this);
  346.         }
  347.         return $this;
  348.     }
  349.     public function removeUser(User $user): self
  350.     {
  351.         if ($this->users->removeElement($user)) {
  352.             // set the owning side to null (unless already changed)
  353.             if ($user->getBeneficiaire() === $this) {
  354.                 $user->setBeneficiaire(null);
  355.             }
  356.         }
  357.         return $this;
  358.     }
  359.     public function getReferentCivilite(): ?string
  360.     {
  361.         return $this->referentCivilite;
  362.     }
  363.     public function setReferentCivilite(?string $referentCivilite): self
  364.     {
  365.         $this->referentCivilite $referentCivilite;
  366.         return $this;
  367.     }
  368.     public function getReferentPrenom(): ?string
  369.     {
  370.         return $this->referentPrenom;
  371.     }
  372.     public function setReferentPrenom(?string $referentPrenom): self
  373.     {
  374.         $this->referentPrenom $referentPrenom;
  375.         return $this;
  376.     }
  377.     public function getReferentNom(): ?string
  378.     {
  379.         return $this->referentNom;
  380.     }
  381.     public function setReferentNom(?string $referentNom): self
  382.     {
  383.         $this->referentNom $referentNom;
  384.         return $this;
  385.     }
  386.     public function getReferentFonction(): ?string
  387.     {
  388.         return $this->referentFonction;
  389.     }
  390.     public function setReferentFonction(?string $referentFonction): self
  391.     {
  392.         $this->referentFonction $referentFonction;
  393.         return $this;
  394.     }
  395.     public function getTicketDiffuseNb(): ?int
  396.     {
  397.         return $this->ticketDiffuseNb;
  398.     }
  399.     public function setTicketDiffuseNb(?int $ticketDiffuseNb): self
  400.     {
  401.         $this->ticketDiffuseNb $ticketDiffuseNb;
  402.         return $this;
  403.     }
  404.     public function getDepartement(): ?string
  405.     {
  406.         return $this->departement;
  407.     }
  408.     public function setDepartement(?string $departement): self
  409.     {
  410.         $this->departement $departement;
  411.         return $this;
  412.     }
  413.     public function getReferentTelephone(): ?string
  414.     {
  415.         return $this->referentTelephone;
  416.     }
  417.     public function setReferentTelephone(?string $referentTelephone): self
  418.     {
  419.         $this->referentTelephone $referentTelephone;
  420.         return $this;
  421.     }
  422.     public function getReferentEmail(): ?string
  423.     {
  424.         return $this->referentEmail;
  425.     }
  426.     public function setReferentEmail(?string $referentEmail): self
  427.     {
  428.         $this->referentEmail $referentEmail;
  429.         return $this;
  430.     }
  431.     public function getTicketsCompilesNb(): ?int
  432.     {
  433.         return $this->ticketsCompilesNb;
  434.     }
  435.     public function setTicketsCompilesNb(?int $ticketsCompilesNb): self
  436.     {
  437.         $this->ticketsCompilesNb $ticketsCompilesNb;
  438.         return $this;
  439.     }
  440.     public function getActivation(): ?int
  441.     {
  442.         return $this->activation;
  443.     }
  444.     public function setActivation(?int $activation): self
  445.     {
  446.         $this->activation $activation;
  447.         return $this;
  448.     }
  449. }