src/Entity/Partenaire.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PartenaireRepository;
  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. /**
  9.  * @ORM\Entity(repositoryClass=PartenaireRepository::class)
  10.  */
  11. class Partenaire
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $pa_nom;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $pa_logo;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $pa_logo_vignette;
  31.     /**
  32.      * @ORM\Column(type="string", length=6)
  33.      */
  34.     private $pa_couleur;
  35.     /**
  36.      * @ORM\Column(type="boolean")
  37.      */
  38.     private $pa_gestion_agenda_autonome;
  39.     /**
  40.      * @ORM\Column(type="boolean")
  41.      */
  42.     private $pa_paiement_obligatoire;
  43.     /**
  44.      * @ORM\Column(type="smallint", nullable=true)
  45.      */
  46.     private $pa_timeout_reservation;
  47.     /**
  48.      * @ORM\OneToMany(targetEntity=Rendezvous::class, mappedBy="partenaire")
  49.      */
  50.     private $rendezVouses;
  51.     /**
  52.      * @ORM\Column(type="string", length=20, unique=true)
  53.      */
  54.     private $pa_code_ws;
  55.     /**
  56.      * @ORM\OneToMany(targetEntity=CentrePartenaire::class, mappedBy="partenaire", orphanRemoval=true)
  57.      */
  58.     private $centrePartenaires;
  59.     /**
  60.      * @ORM\Column(type="integer")
  61.      */
  62.     private $id_old;
  63.     public function __construct()
  64.     {
  65.         $this->rendezVouses = new ArrayCollection();
  66.         $this->centrePartenaires = new ArrayCollection();
  67.     }
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getPaNom(): ?string
  73.     {
  74.         return $this->pa_nom;
  75.     }
  76.     public function setPaNom(string $pa_nom): self
  77.     {
  78.         $this->pa_nom $pa_nom;
  79.         return $this;
  80.     }
  81.     public function getPaLogo(): ?string
  82.     {
  83.         return $this->pa_logo;
  84.     }
  85.     public function setPaLogo(?string $pa_logo): self
  86.     {
  87.         $this->pa_logo $pa_logo;
  88.         return $this;
  89.     }
  90.     public function getPaLogoVignette(): ?string
  91.     {
  92.         return $this->pa_logo_vignette;
  93.     }
  94.     public function setPaLogoVignette(?string $pa_logo_vignette): self
  95.     {
  96.         $this->pa_logo_vignette $pa_logo_vignette;
  97.         return $this;
  98.     }
  99.     public function getPaCouleur(): ?string
  100.     {
  101.         return $this->pa_couleur;
  102.     }
  103.     public function setPaCouleur(string $pa_couleur): self
  104.     {
  105.         $this->pa_couleur $pa_couleur;
  106.         return $this;
  107.     }
  108.     public function isPaGestionAgendaAutonome(): ?bool
  109.     {
  110.         return $this->pa_gestion_agenda_autonome;
  111.     }
  112.     public function setPaGestionAgendaAutonome(bool $pa_gestion_agenda_autonome): self
  113.     {
  114.         $this->pa_gestion_agenda_autonome $pa_gestion_agenda_autonome;
  115.         return $this;
  116.     }
  117.     public function isPaPaiementObligatoire(): ?bool
  118.     {
  119.         return $this->pa_paiement_obligatoire;
  120.     }
  121.     public function setPaPaiementObligatoire(bool $pa_paiement_obligatoire): self
  122.     {
  123.         $this->pa_paiement_obligatoire $pa_paiement_obligatoire;
  124.         return $this;
  125.     }
  126.     public function getPaTimeoutReservation(): ?int
  127.     {
  128.         return $this->pa_timeout_reservation;
  129.     }
  130.     public function setPaTimeoutReservation(?int $pa_timeout_reservation): self
  131.     {
  132.         $this->pa_timeout_reservation $pa_timeout_reservation;
  133.         return $this;
  134.     }
  135.     /**
  136.      * @return Collection<int, Rendezvous>
  137.      */
  138.     public function getRendezVouses(): Collection
  139.     {
  140.         return $this->rendezVouses;
  141.     }
  142.     public function addRendezVouse(Rendezvous $rendezVouse): self
  143.     {
  144.         if (!$this->rendezVouses->contains($rendezVouse)) {
  145.             $this->rendezVouses[] = $rendezVouse;
  146.             $rendezVouse->setPartenaire($this);
  147.         }
  148.         return $this;
  149.     }
  150.     public function removeRendezVouse(Rendezvous $rendezVouse): self
  151.     {
  152.         if ($this->rendezVouses->removeElement($rendezVouse)) {
  153.             // set the owning side to null (unless already changed)
  154.             if ($rendezVouse->getPartenaire() === $this) {
  155.                 $rendezVouse->setPartenaire(null);
  156.             }
  157.         }
  158.         return $this;
  159.     }
  160.     public function getPaCodeWs(): ?string
  161.     {
  162.         return $this->pa_code_ws;
  163.     }
  164.     public function setPaCodeWs(string $pa_code_ws): self
  165.     {
  166.         $this->pa_code_ws $pa_code_ws;
  167.         return $this;
  168.     }
  169.     /**
  170.      * @return Collection<int, CentrePartenaire>
  171.      */
  172.     public function getCentrePartenaires(): Collection
  173.     {
  174.         return $this->centrePartenaires;
  175.     }
  176.     public function addCentrePartenaire(CentrePartenaire $centrePartenaire): self
  177.     {
  178.         if (!$this->centrePartenaires->contains($centrePartenaire)) {
  179.             $this->centrePartenaires[] = $centrePartenaire;
  180.             $centrePartenaire->setPartenaire($this);
  181.         }
  182.         return $this;
  183.     }
  184.     public function removeCentrePartenaire(CentrePartenaire $centrePartenaire): self
  185.     {
  186.         if ($this->centrePartenaires->removeElement($centrePartenaire)) {
  187.             // set the owning side to null (unless already changed)
  188.             if ($centrePartenaire->getPartenaire() === $this) {
  189.                 $centrePartenaire->setPartenaire(null);
  190.             }
  191.         }
  192.         return $this;
  193.     }
  194.     public function getIdOld(): ?int
  195.     {
  196.         return $this->id_old;
  197.     }
  198.     public function setIdOld(int $id_old): self
  199.     {
  200.         $this->id_old $id_old;
  201.         return $this;
  202.     }
  203. }