<?phpnamespace App\Entity;use App\Repository\TypeVisiteRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TypeVisiteRepository::class) */class TypeVisite{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=50) */ private $typ_vst_libele; /** * @ORM\Column(type="string", length=255) */ private $typ_vst_libele_long; /** * @ORM\Column(type="string", length=10) */ private $typ_vst_libele_court; /** * @ORM\Column(type="string", length=6, nullable=true) */ private $typ_vst_couleur; /** * @ORM\ManyToOne(targetEntity=CentreGroupe::class, inversedBy="typeVisites") * @ORM\JoinColumn(nullable=false) */ private $centre_groupe; /** * @ORM\OneToMany(targetEntity=CentrePrestation::class, mappedBy="pst_type_visite") */ private $centrePrestations; /** * @ORM\Column(type="integer", nullable=true) */ private $id_old; public function __construct() { $this->centrePrestations = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getTypVstLibele(): ?string { return $this->typ_vst_libele; } public function setTypVstLibele(string $typ_vst_libele): self { $this->typ_vst_libele = $typ_vst_libele; return $this; } public function getTypVstLibeleLong(): ?string { return $this->typ_vst_libele_long; } public function setTypVstLibeleLong(string $typ_vst_libele_long): self { $this->typ_vst_libele_long = $typ_vst_libele_long; return $this; } public function getTypVstLibeleCourt(): ?string { return $this->typ_vst_libele_court; } public function setTypVstLibeleCourt(string $typ_vst_libele_court): self { $this->typ_vst_libele_court = $typ_vst_libele_court; return $this; } public function getTypVstCouleur(): ?string { return $this->typ_vst_couleur; } public function setTypVstCouleur(?string $typ_vst_couleur): self { $this->typ_vst_couleur = $typ_vst_couleur; return $this; } public function getCentreGroupe(): ?CentreGroupe { return $this->centre_groupe; } public function setCentreGroupe(?CentreGroupe $centre_groupe): self { $this->centre_groupe = $centre_groupe; return $this; } /** * @return Collection<int, CentrePrestation> */ public function getCentrePrestations(): Collection { return $this->centrePrestations; } public function addCentrePrestation(CentrePrestation $centrePrestation): self { if (!$this->centrePrestations->contains($centrePrestation)) { $this->centrePrestations[] = $centrePrestation; $centrePrestation->setPstTypeVisite($this); } return $this; } public function removeCentrePrestation(CentrePrestation $centrePrestation): self { if ($this->centrePrestations->removeElement($centrePrestation)) { // set the owning side to null (unless already changed) if ($centrePrestation->getPstTypeVisite() === $this) { $centrePrestation->setPstTypeVisite(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; }}