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.     public function __construct()
  135.     {
  136.         $this->tickets = new ArrayCollection();
  137.         $this->users = new ArrayCollection();
  138.     }
  139.     public function getId(): ?int
  140.     {
  141.         return $this->id;
  142.     }
  143.     public function getNom(): ?string
  144.     {
  145.         return $this->nom;
  146.     }
  147.     public function setNom(?string $nom): self
  148.     {
  149.         $this->nom $nom;
  150.         return $this;
  151.     }
  152.     public function getStatut(): ?string
  153.     {
  154.         return $this->statut;
  155.     }
  156.     public function setStatut(?string $statut): self
  157.     {
  158.         $this->statut $statut;
  159.         return $this;
  160.     }
  161.     public function getAdresse(): ?string
  162.     {
  163.         return $this->adresse;
  164.     }
  165.     public function setAdresse(?string $adresse): self
  166.     {
  167.         $this->adresse $adresse;
  168.         return $this;
  169.     }
  170.     public function getCodePostal(): ?string
  171.     {
  172.         return $this->codePostal;
  173.     }
  174.     public function setCodePostal(?string $codePostal): self
  175.     {
  176.         $this->codePostal $codePostal;
  177.         return $this;
  178.     }
  179.     public function getCommune(): ?string
  180.     {
  181.         return $this->commune;
  182.     }
  183.     public function setCommune(?string $commune): self
  184.     {
  185.         $this->commune $commune;
  186.         return $this;
  187.     }
  188.     public function getCodeCommune(): ?string
  189.     {
  190.         return $this->codeCommune;
  191.     }
  192.     public function setCodeCommune(string $codeCommune): self
  193.     {
  194.         $this->codeCommune $codeCommune;
  195.         return $this;
  196.     }
  197.     public function getTelephone(): ?string
  198.     {
  199.         return $this->telephone;
  200.     }
  201.     public function setTelephone(?string $telephone): self
  202.     {
  203.         $this->telephone $telephone;
  204.         return $this;
  205.     }
  206.     public function getEmail(): ?string
  207.     {
  208.         return $this->email;
  209.     }
  210.     public function setEmail(?string $email): self
  211.     {
  212.         $this->email $email;
  213.         return $this;
  214.     }
  215.     public function getTicketRecuNb(): ?int
  216.     {
  217.         return $this->ticketRecuNb;
  218.     }
  219.     public function setTicketRecuNb(?int $ticketRecuNb): self
  220.     {
  221.         $this->ticketRecuNb $ticketRecuNb;
  222.         return $this;
  223.     }
  224.     public function getTicketUtiliseNb(): ?int
  225.     {
  226.         return $this->ticketUtiliseNb;
  227.     }
  228.     public function setTicketUtiliseNb(?int $ticketUtiliseNb): self
  229.     {
  230.         $this->ticketUtiliseNb $ticketUtiliseNb;
  231.         return $this;
  232.     }
  233.     public function getTicketIndividuelNb(): ?int
  234.     {
  235.         return $this->ticketIndividuelNb;
  236.     }
  237.     public function setTicketIndividuelNb(?int $ticketIndividuelNb): self
  238.     {
  239.         $this->ticketIndividuelNb $ticketIndividuelNb;
  240.         return $this;
  241.     }
  242.     public function getTicketCollectifNb(): ?int
  243.     {
  244.         return $this->ticketCollectifNb;
  245.     }
  246.     public function setTicketCollectifNb(?int $ticketCollectifNb): self
  247.     {
  248.         $this->ticketCollectifNb $ticketCollectifNb;
  249.         return $this;
  250.     }
  251.     public function getProfilDestinataire(): ?string
  252.     {
  253.         return $this->profilDestinataire;
  254.     }
  255.     public function setProfilDestinataire(?string $profilDestinataire): self
  256.     {
  257.         $this->profilDestinataire $profilDestinataire;
  258.         return $this;
  259.     }
  260.     public function getPolitiqueDistribution(): ?string
  261.     {
  262.         return $this->politiqueDistribution;
  263.     }
  264.     public function setPolitiqueDistribution(?string $politiqueDistribution): self
  265.     {
  266.         $this->politiqueDistribution $politiqueDistribution;
  267.         return $this;
  268.     }
  269.     public function getMethodeDiffusion(): ?string
  270.     {
  271.         return $this->methodeDiffusion;
  272.     }
  273.     public function setMethodeDiffusion(?string $methodeDiffusion): self
  274.     {
  275.         $this->methodeDiffusion $methodeDiffusion;
  276.         return $this;
  277.     }
  278.     public function getDiffusionAccompagnement(): ?string
  279.     {
  280.         return $this->diffusionAccompagnement;
  281.     }
  282.     public function setDiffusionAccompagnement(?string $diffusionAccompagnement): self
  283.     {
  284.         $this->diffusionAccompagnement $diffusionAccompagnement;
  285.         return $this;
  286.     }
  287.     public function getRetourPublic(): ?string
  288.     {
  289.         return $this->retourPublic;
  290.     }
  291.     public function setRetourPublic(?string $retourPublic): self
  292.     {
  293.         $this->retourPublic $retourPublic;
  294.         return $this;
  295.     }
  296.     public function getRemarque(): ?string
  297.     {
  298.         return $this->remarque;
  299.     }
  300.     public function setRemarque(?string $remarque): self
  301.     {
  302.         $this->remarque $remarque;
  303.         return $this;
  304.     }
  305.     /**
  306.      * @return Collection<int, Ticket>
  307.      */
  308.     public function getTickets(): Collection
  309.     {
  310.         return $this->tickets;
  311.     }
  312.     public function addTicket(Ticket $ticket): self
  313.     {
  314.         if (!$this->tickets->contains($ticket)) {
  315.             $this->tickets[] = $ticket;
  316.             $ticket->setBeneficiaire($this);
  317.         }
  318.         return $this;
  319.     }
  320.     public function removeTicket(Ticket $ticket): self
  321.     {
  322.         if ($this->tickets->removeElement($ticket)) {
  323.             // set the owning side to null (unless already changed)
  324.             if ($ticket->getBeneficiaire() === $this) {
  325.                 $ticket->setBeneficiaire(null);
  326.             }
  327.         }
  328.         return $this;
  329.     }
  330.     /**
  331.      * @return Collection<int, User>
  332.      */
  333.     public function getUsers(): Collection
  334.     {
  335.         return $this->users;
  336.     }
  337.     public function addUser(User $user): self
  338.     {
  339.         if (!$this->users->contains($user)) {
  340.             $this->users[] = $user;
  341.             $user->setBeneficiaire($this);
  342.         }
  343.         return $this;
  344.     }
  345.     public function removeUser(User $user): self
  346.     {
  347.         if ($this->users->removeElement($user)) {
  348.             // set the owning side to null (unless already changed)
  349.             if ($user->getBeneficiaire() === $this) {
  350.                 $user->setBeneficiaire(null);
  351.             }
  352.         }
  353.         return $this;
  354.     }
  355.     public function getReferentCivilite(): ?string
  356.     {
  357.         return $this->referentCivilite;
  358.     }
  359.     public function setReferentCivilite(?string $referentCivilite): self
  360.     {
  361.         $this->referentCivilite $referentCivilite;
  362.         return $this;
  363.     }
  364.     public function getReferentPrenom(): ?string
  365.     {
  366.         return $this->referentPrenom;
  367.     }
  368.     public function setReferentPrenom(?string $referentPrenom): self
  369.     {
  370.         $this->referentPrenom $referentPrenom;
  371.         return $this;
  372.     }
  373.     public function getReferentNom(): ?string
  374.     {
  375.         return $this->referentNom;
  376.     }
  377.     public function setReferentNom(?string $referentNom): self
  378.     {
  379.         $this->referentNom $referentNom;
  380.         return $this;
  381.     }
  382.     public function getReferentFonction(): ?string
  383.     {
  384.         return $this->referentFonction;
  385.     }
  386.     public function setReferentFonction(?string $referentFonction): self
  387.     {
  388.         $this->referentFonction $referentFonction;
  389.         return $this;
  390.     }
  391.     public function getTicketDiffuseNb(): ?int
  392.     {
  393.         return $this->ticketDiffuseNb;
  394.     }
  395.     public function setTicketDiffuseNb(?int $ticketDiffuseNb): self
  396.     {
  397.         $this->ticketDiffuseNb $ticketDiffuseNb;
  398.         return $this;
  399.     }
  400.     public function getDepartement(): ?string
  401.     {
  402.         return $this->departement;
  403.     }
  404.     public function setDepartement(?string $departement): self
  405.     {
  406.         $this->departement $departement;
  407.         return $this;
  408.     }
  409.     public function getReferentTelephone(): ?string
  410.     {
  411.         return $this->referentTelephone;
  412.     }
  413.     public function setReferentTelephone(?string $referentTelephone): self
  414.     {
  415.         $this->referentTelephone $referentTelephone;
  416.         return $this;
  417.     }
  418.     public function getReferentEmail(): ?string
  419.     {
  420.         return $this->referentEmail;
  421.     }
  422.     public function setReferentEmail(?string $referentEmail): self
  423.     {
  424.         $this->referentEmail $referentEmail;
  425.         return $this;
  426.     }
  427.     public function getTicketsCompilesNb(): ?int
  428.     {
  429.         return $this->ticketsCompilesNb;
  430.     }
  431.     public function setTicketsCompilesNb(?int $ticketsCompilesNb): self
  432.     {
  433.         $this->ticketsCompilesNb $ticketsCompilesNb;
  434.         return $this;
  435.     }
  436. }