src/Entity/TypeVisite.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TypeVisiteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=TypeVisiteRepository::class)
  9.  */
  10. class TypeVisite
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=50)
  20.      */
  21.     private $typ_vst_libele;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $typ_vst_libele_long;
  26.     /**
  27.      * @ORM\Column(type="string", length=10)
  28.      */
  29.     private $typ_vst_libele_court;
  30.     /**
  31.      * @ORM\Column(type="string", length=6, nullable=true)
  32.      */
  33.     private $typ_vst_couleur;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=CentreGroupe::class, inversedBy="typeVisites")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $centre_groupe;
  39.     /**
  40.      * @ORM\OneToMany(targetEntity=CentrePrestation::class, mappedBy="pst_type_visite")
  41.      */
  42.     private $centrePrestations;
  43.     /**
  44.      * @ORM\Column(type="integer", nullable=true)
  45.      */
  46.     private $id_old;
  47.     public function __construct()
  48.     {
  49.         $this->centrePrestations = new ArrayCollection();
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getTypVstLibele(): ?string
  56.     {
  57.         return $this->typ_vst_libele;
  58.     }
  59.     public function setTypVstLibele(string $typ_vst_libele): self
  60.     {
  61.         $this->typ_vst_libele $typ_vst_libele;
  62.         return $this;
  63.     }
  64.     public function getTypVstLibeleLong(): ?string
  65.     {
  66.         return $this->typ_vst_libele_long;
  67.     }
  68.     public function setTypVstLibeleLong(string $typ_vst_libele_long): self
  69.     {
  70.         $this->typ_vst_libele_long $typ_vst_libele_long;
  71.         return $this;
  72.     }
  73.     public function getTypVstLibeleCourt(): ?string
  74.     {
  75.         return $this->typ_vst_libele_court;
  76.     }
  77.     public function setTypVstLibeleCourt(string $typ_vst_libele_court): self
  78.     {
  79.         $this->typ_vst_libele_court $typ_vst_libele_court;
  80.         return $this;
  81.     }
  82.     public function getTypVstCouleur(): ?string
  83.     {
  84.         return $this->typ_vst_couleur;
  85.     }
  86.     public function setTypVstCouleur(?string $typ_vst_couleur): self
  87.     {
  88.         $this->typ_vst_couleur $typ_vst_couleur;
  89.         return $this;
  90.     }
  91.     public function getCentreGroupe(): ?CentreGroupe
  92.     {
  93.         return $this->centre_groupe;
  94.     }
  95.     public function setCentreGroupe(?CentreGroupe $centre_groupe): self
  96.     {
  97.         $this->centre_groupe $centre_groupe;
  98.         return $this;
  99.     }
  100.     /**
  101.      * @return Collection<int, CentrePrestation>
  102.      */
  103.     public function getCentrePrestations(): Collection
  104.     {
  105.         return $this->centrePrestations;
  106.     }
  107.     public function addCentrePrestation(CentrePrestation $centrePrestation): self
  108.     {
  109.         if (!$this->centrePrestations->contains($centrePrestation)) {
  110.             $this->centrePrestations[] = $centrePrestation;
  111.             $centrePrestation->setPstTypeVisite($this);
  112.         }
  113.         return $this;
  114.     }
  115.     public function removeCentrePrestation(CentrePrestation $centrePrestation): self
  116.     {
  117.         if ($this->centrePrestations->removeElement($centrePrestation)) {
  118.             // set the owning side to null (unless already changed)
  119.             if ($centrePrestation->getPstTypeVisite() === $this) {
  120.                 $centrePrestation->setPstTypeVisite(null);
  121.             }
  122.         }
  123.         return $this;
  124.     }
  125.     public function getIdOld(): ?int
  126.     {
  127.         return $this->id_old;
  128.     }
  129.     public function setIdOld(int $id_old): self
  130.     {
  131.         $this->id_old $id_old;
  132.         return $this;
  133.     }
  134. }