<?php
namespace App\Entity;
use App\Repository\BeneficiaireRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BeneficiaireRepository::class)
*/
class Beneficiaire
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $statut;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=5, nullable=true)
*/
private $codePostal;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commune;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $codeCommune;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ticketRecuNb;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ticketUtiliseNb;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ticketIndividuelNb;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ticketCollectifNb;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $profilDestinataire;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $politiqueDistribution;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $methodeDiffusion;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $diffusionAccompagnement;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $retourPublic;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $remarque;
/**
* @ORM\OneToMany(targetEntity=Ticket::class, mappedBy="beneficiaire")
*/
private $tickets;
/**
* @ORM\OneToMany(targetEntity=User::class, mappedBy="beneficiaire")
*/
private $users;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
private $referentCivilite;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $referentPrenom;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $referentNom;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $referentFonction;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ticketDiffuseNb;
/**
* @ORM\Column(type="string", length=2, nullable=true)
*/
private $departement;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
private $referentTelephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $referentEmail;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ticketsCompilesNb;
public function __construct()
{
$this->tickets = new ArrayCollection();
$this->users = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getStatut(): ?string
{
return $this->statut;
}
public function setStatut(?string $statut): self
{
$this->statut = $statut;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getCodePostal(): ?string
{
return $this->codePostal;
}
public function setCodePostal(?string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getCommune(): ?string
{
return $this->commune;
}
public function setCommune(?string $commune): self
{
$this->commune = $commune;
return $this;
}
public function getCodeCommune(): ?string
{
return $this->codeCommune;
}
public function setCodeCommune(string $codeCommune): self
{
$this->codeCommune = $codeCommune;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getTicketRecuNb(): ?int
{
return $this->ticketRecuNb;
}
public function setTicketRecuNb(?int $ticketRecuNb): self
{
$this->ticketRecuNb = $ticketRecuNb;
return $this;
}
public function getTicketUtiliseNb(): ?int
{
return $this->ticketUtiliseNb;
}
public function setTicketUtiliseNb(?int $ticketUtiliseNb): self
{
$this->ticketUtiliseNb = $ticketUtiliseNb;
return $this;
}
public function getTicketIndividuelNb(): ?int
{
return $this->ticketIndividuelNb;
}
public function setTicketIndividuelNb(?int $ticketIndividuelNb): self
{
$this->ticketIndividuelNb = $ticketIndividuelNb;
return $this;
}
public function getTicketCollectifNb(): ?int
{
return $this->ticketCollectifNb;
}
public function setTicketCollectifNb(?int $ticketCollectifNb): self
{
$this->ticketCollectifNb = $ticketCollectifNb;
return $this;
}
public function getProfilDestinataire(): ?string
{
return $this->profilDestinataire;
}
public function setProfilDestinataire(?string $profilDestinataire): self
{
$this->profilDestinataire = $profilDestinataire;
return $this;
}
public function getPolitiqueDistribution(): ?string
{
return $this->politiqueDistribution;
}
public function setPolitiqueDistribution(?string $politiqueDistribution): self
{
$this->politiqueDistribution = $politiqueDistribution;
return $this;
}
public function getMethodeDiffusion(): ?string
{
return $this->methodeDiffusion;
}
public function setMethodeDiffusion(?string $methodeDiffusion): self
{
$this->methodeDiffusion = $methodeDiffusion;
return $this;
}
public function getDiffusionAccompagnement(): ?string
{
return $this->diffusionAccompagnement;
}
public function setDiffusionAccompagnement(?string $diffusionAccompagnement): self
{
$this->diffusionAccompagnement = $diffusionAccompagnement;
return $this;
}
public function getRetourPublic(): ?string
{
return $this->retourPublic;
}
public function setRetourPublic(?string $retourPublic): self
{
$this->retourPublic = $retourPublic;
return $this;
}
public function getRemarque(): ?string
{
return $this->remarque;
}
public function setRemarque(?string $remarque): self
{
$this->remarque = $remarque;
return $this;
}
/**
* @return Collection<int, Ticket>
*/
public function getTickets(): Collection
{
return $this->tickets;
}
public function addTicket(Ticket $ticket): self
{
if (!$this->tickets->contains($ticket)) {
$this->tickets[] = $ticket;
$ticket->setBeneficiaire($this);
}
return $this;
}
public function removeTicket(Ticket $ticket): self
{
if ($this->tickets->removeElement($ticket)) {
// set the owning side to null (unless already changed)
if ($ticket->getBeneficiaire() === $this) {
$ticket->setBeneficiaire(null);
}
}
return $this;
}
/**
* @return Collection<int, User>
*/
public function getUsers(): Collection
{
return $this->users;
}
public function addUser(User $user): self
{
if (!$this->users->contains($user)) {
$this->users[] = $user;
$user->setBeneficiaire($this);
}
return $this;
}
public function removeUser(User $user): self
{
if ($this->users->removeElement($user)) {
// set the owning side to null (unless already changed)
if ($user->getBeneficiaire() === $this) {
$user->setBeneficiaire(null);
}
}
return $this;
}
public function getReferentCivilite(): ?string
{
return $this->referentCivilite;
}
public function setReferentCivilite(?string $referentCivilite): self
{
$this->referentCivilite = $referentCivilite;
return $this;
}
public function getReferentPrenom(): ?string
{
return $this->referentPrenom;
}
public function setReferentPrenom(?string $referentPrenom): self
{
$this->referentPrenom = $referentPrenom;
return $this;
}
public function getReferentNom(): ?string
{
return $this->referentNom;
}
public function setReferentNom(?string $referentNom): self
{
$this->referentNom = $referentNom;
return $this;
}
public function getReferentFonction(): ?string
{
return $this->referentFonction;
}
public function setReferentFonction(?string $referentFonction): self
{
$this->referentFonction = $referentFonction;
return $this;
}
public function getTicketDiffuseNb(): ?int
{
return $this->ticketDiffuseNb;
}
public function setTicketDiffuseNb(?int $ticketDiffuseNb): self
{
$this->ticketDiffuseNb = $ticketDiffuseNb;
return $this;
}
public function getDepartement(): ?string
{
return $this->departement;
}
public function setDepartement(?string $departement): self
{
$this->departement = $departement;
return $this;
}
public function getReferentTelephone(): ?string
{
return $this->referentTelephone;
}
public function setReferentTelephone(?string $referentTelephone): self
{
$this->referentTelephone = $referentTelephone;
return $this;
}
public function getReferentEmail(): ?string
{
return $this->referentEmail;
}
public function setReferentEmail(?string $referentEmail): self
{
$this->referentEmail = $referentEmail;
return $this;
}
public function getTicketsCompilesNb(): ?int
{
return $this->ticketsCompilesNb;
}
public function setTicketsCompilesNb(?int $ticketsCompilesNb): self
{
$this->ticketsCompilesNb = $ticketsCompilesNb;
return $this;
}
}