<?php
namespace App\Entity;
use App\Repository\PartenaireRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PartenaireRepository::class)
*/
class Partenaire
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $pa_nom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pa_logo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pa_logo_vignette;
/**
* @ORM\Column(type="string", length=6)
*/
private $pa_couleur;
/**
* @ORM\Column(type="boolean")
*/
private $pa_gestion_agenda_autonome;
/**
* @ORM\Column(type="boolean")
*/
private $pa_paiement_obligatoire;
/**
* @ORM\Column(type="smallint", nullable=true)
*/
private $pa_timeout_reservation;
/**
* @ORM\OneToMany(targetEntity=Rendezvous::class, mappedBy="partenaire")
*/
private $rendezVouses;
/**
* @ORM\Column(type="string", length=20, unique=true)
*/
private $pa_code_ws;
/**
* @ORM\OneToMany(targetEntity=CentrePartenaire::class, mappedBy="partenaire", orphanRemoval=true)
*/
private $centrePartenaires;
/**
* @ORM\Column(type="integer")
*/
private $id_old;
public function __construct()
{
$this->rendezVouses = new ArrayCollection();
$this->centrePartenaires = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getPaNom(): ?string
{
return $this->pa_nom;
}
public function setPaNom(string $pa_nom): self
{
$this->pa_nom = $pa_nom;
return $this;
}
public function getPaLogo(): ?string
{
return $this->pa_logo;
}
public function setPaLogo(?string $pa_logo): self
{
$this->pa_logo = $pa_logo;
return $this;
}
public function getPaLogoVignette(): ?string
{
return $this->pa_logo_vignette;
}
public function setPaLogoVignette(?string $pa_logo_vignette): self
{
$this->pa_logo_vignette = $pa_logo_vignette;
return $this;
}
public function getPaCouleur(): ?string
{
return $this->pa_couleur;
}
public function setPaCouleur(string $pa_couleur): self
{
$this->pa_couleur = $pa_couleur;
return $this;
}
public function isPaGestionAgendaAutonome(): ?bool
{
return $this->pa_gestion_agenda_autonome;
}
public function setPaGestionAgendaAutonome(bool $pa_gestion_agenda_autonome): self
{
$this->pa_gestion_agenda_autonome = $pa_gestion_agenda_autonome;
return $this;
}
public function isPaPaiementObligatoire(): ?bool
{
return $this->pa_paiement_obligatoire;
}
public function setPaPaiementObligatoire(bool $pa_paiement_obligatoire): self
{
$this->pa_paiement_obligatoire = $pa_paiement_obligatoire;
return $this;
}
public function getPaTimeoutReservation(): ?int
{
return $this->pa_timeout_reservation;
}
public function setPaTimeoutReservation(?int $pa_timeout_reservation): self
{
$this->pa_timeout_reservation = $pa_timeout_reservation;
return $this;
}
/**
* @return Collection<int, Rendezvous>
*/
public function getRendezVouses(): Collection
{
return $this->rendezVouses;
}
public function addRendezVouse(Rendezvous $rendezVouse): self
{
if (!$this->rendezVouses->contains($rendezVouse)) {
$this->rendezVouses[] = $rendezVouse;
$rendezVouse->setPartenaire($this);
}
return $this;
}
public function removeRendezVouse(Rendezvous $rendezVouse): self
{
if ($this->rendezVouses->removeElement($rendezVouse)) {
// set the owning side to null (unless already changed)
if ($rendezVouse->getPartenaire() === $this) {
$rendezVouse->setPartenaire(null);
}
}
return $this;
}
public function getPaCodeWs(): ?string
{
return $this->pa_code_ws;
}
public function setPaCodeWs(string $pa_code_ws): self
{
$this->pa_code_ws = $pa_code_ws;
return $this;
}
/**
* @return Collection<int, CentrePartenaire>
*/
public function getCentrePartenaires(): Collection
{
return $this->centrePartenaires;
}
public function addCentrePartenaire(CentrePartenaire $centrePartenaire): self
{
if (!$this->centrePartenaires->contains($centrePartenaire)) {
$this->centrePartenaires[] = $centrePartenaire;
$centrePartenaire->setPartenaire($this);
}
return $this;
}
public function removeCentrePartenaire(CentrePartenaire $centrePartenaire): self
{
if ($this->centrePartenaires->removeElement($centrePartenaire)) {
// set the owning side to null (unless already changed)
if ($centrePartenaire->getPartenaire() === $this) {
$centrePartenaire->setPartenaire(null);
}
}
return $this;
}
public function getIdOld(): ?int
{
return $this->id_old;
}
public function setIdOld(int $id_old): self
{
$this->id_old = $id_old;
return $this;
}
}