src/Entity/ChargeFormation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Entreprise;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\ChargeFormationRepository;
  6. #[ORM\Entity(repositoryClassChargeFormationRepository::class)]
  7. class ChargeFormation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'string'length255)]
  14.     private $nom;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $genre;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $niveau_instruction;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $fonction;
  21.     #[ORM\Column(type'string'length255)]
  22.     private $structure_affectation;
  23.     #[ORM\ManyToOne(targetEntityEntreprise::class, inversedBy'charge_formations')]
  24.     private $entreprise;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getEntreprise(): ?Entreprise
  30.     {
  31.         return $this->entreprise;
  32.     }
  33.     public function setEntreprise(?Entreprise $entreprise): self
  34.     {
  35.         $this->entreprise $entreprise;
  36.         return $this;
  37.     }
  38.     public function getNom(): ?string
  39.     {
  40.         return $this->nom;
  41.     }
  42.     public function setNom(string $nom): self
  43.     {
  44.         $this->nom $nom;
  45.         return $this;
  46.     }
  47.     public function getGenre(): ?string
  48.     {
  49.         return $this->genre;
  50.     }
  51.     public function setGenre(string $genre): self
  52.     {
  53.         $this->genre $genre;
  54.         return $this;
  55.     }
  56.     public function getNiveauInstruction(): ?string
  57.     {
  58.         return $this->niveau_instruction;
  59.     }
  60.     public function setNiveauInstruction(string $niveau_instruction): self
  61.     {
  62.         $this->niveau_instruction $niveau_instruction;
  63.         return $this;
  64.     }
  65.     public function getFonction(): ?string
  66.     {
  67.         return $this->fonction;
  68.     }
  69.     public function setFonction(string $fonction): self
  70.     {
  71.         $this->fonction $fonction;
  72.         return $this;
  73.     }
  74.     public function getStructureAffectation(): ?string
  75.     {
  76.         return $this->structure_affectation;
  77.     }
  78.     public function setStructureAffectation(string $structure_affectation): self
  79.     {
  80.         $this->structure_affectation $structure_affectation;
  81.         return $this;
  82.     }
  83.     public function __toString()
  84.     {
  85.         return " ";
  86.     }
  87. }