<?phpnamespace App\Entity;use App\Entity\Entreprise;use Doctrine\ORM\Mapping as ORM;use App\Repository\ChargeFormationRepository;#[ORM\Entity(repositoryClass: ChargeFormationRepository::class)]class ChargeFormation{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255)] private $nom; #[ORM\Column(type: 'string', length: 255)] private $genre; #[ORM\Column(type: 'string', length: 255)] private $niveau_instruction; #[ORM\Column(type: 'string', length: 255)] private $fonction; #[ORM\Column(type: 'string', length: 255)] private $structure_affectation; #[ORM\ManyToOne(targetEntity: Entreprise::class, inversedBy: 'charge_formations')] private $entreprise; public function getId(): ?int { return $this->id; } public function getEntreprise(): ?Entreprise { return $this->entreprise; } public function setEntreprise(?Entreprise $entreprise): self { $this->entreprise = $entreprise; return $this; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): self { $this->nom = $nom; return $this; } public function getGenre(): ?string { return $this->genre; } public function setGenre(string $genre): self { $this->genre = $genre; return $this; } public function getNiveauInstruction(): ?string { return $this->niveau_instruction; } public function setNiveauInstruction(string $niveau_instruction): self { $this->niveau_instruction = $niveau_instruction; return $this; } public function getFonction(): ?string { return $this->fonction; } public function setFonction(string $fonction): self { $this->fonction = $fonction; return $this; } public function getStructureAffectation(): ?string { return $this->structure_affectation; } public function setStructureAffectation(string $structure_affectation): self { $this->structure_affectation = $structure_affectation; return $this; } public function __toString() { return " "; }}