src/Entity/EtablissementMetier.php line 8

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity()]
  5. class EtablissementMetier
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\ManyToOne(targetEntityEtablissement::class, inversedBy'etablissementMetiers')]
  12.     #[ORM\JoinColumn(nullabletrue)]
  13.     private $etablissement;
  14.     #[ORM\ManyToOne(targetEntityMetier::class, inversedBy'etablissementMetiers')]
  15.     #[ORM\JoinColumn(nullabletrue)]
  16.     private $metier;
  17.     #[ORM\Column(type'integer'nullabletrue)]
  18.     private $nbrplace;
  19.     #[ORM\Column(type'string'length100nullabletrue)]
  20.     private $niveauRequis;
  21.     #[ORM\Column(type'string'length50nullabletrue)]
  22.     private $dureeFormation;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getEtablissement(): ?Etablissement
  28.     {
  29.         return $this->etablissement;
  30.     }
  31.     public function setEtablissement(?Etablissement $etablissement): self
  32.     {
  33.         $this->etablissement $etablissement;
  34.         return $this;
  35.     }
  36.     public function getMetier(): ?Metier
  37.     {
  38.         return $this->metier;
  39.     }
  40.     public function setMetier(?Metier $metier): self
  41.     {
  42.         $this->metier $metier;
  43.         return $this;
  44.     }
  45.     public function getNbrplace(): ?int
  46.     {
  47.         return $this->nbrplace;
  48.     }
  49.     public function setNbrplace(?int $nbrplace): self
  50.     {
  51.         $this->nbrplace $nbrplace;
  52.         return $this;
  53.     }
  54.     public function getNiveauRequis(): ?string
  55.     {
  56.         return $this->niveauRequis;
  57.     }
  58.     public function setNiveauRequis(?string $niveauRequis): self
  59.     {
  60.         $this->niveauRequis $niveauRequis;
  61.         return $this;
  62.     }
  63.     public function getDureeFormation(): ?string
  64.     {
  65.         return $this->dureeFormation;
  66.     }
  67.     public function setDureeFormation(?string $dureeFormation): self
  68.     {
  69.         $this->dureeFormation $dureeFormation;
  70.         return $this;
  71.     }
  72. }