src/Entity/Gestiform/Formations/Entreprise/FormateurEntreprise.php line 14

  1. <?php
  2. namespace App\Entity\Gestiform\Formations\Entreprise;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Gestiform\Users\Formateur;
  5. use App\Repository\Gestiform\Formations\Entreprise\FormateurEntrepriseRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassFormateurEntrepriseRepository::class)]
  9. class FormateurEntreprise extends AbstractEntity
  10. {
  11.     #[ORM\ManyToOne(targetEntityFormateur::class, inversedBy'formateurEntreprises')]
  12.     private ?Formateur $formateur null;
  13.     #[ORM\ManyToOne(targetEntityEntreprise::class, cascade: ['persist'], inversedBy'formateurEntreprises')]
  14.     private ?Entreprise $entreprise null;
  15.     #[ORM\ManyToOne(targetEntityContact::class, cascade: ['persist'])]
  16.     private ?Contact $contact null;
  17.     public function getFormateur(): ?Formateur
  18.     {
  19.         return $this->formateur;
  20.     }
  21.     public function setFormateur(?Formateur $formateur): self
  22.     {
  23.         $this->formateur $formateur;
  24.         return $this;
  25.     }
  26.     public function getEntreprise(): ?Entreprise
  27.     {
  28.         return $this->entreprise;
  29.     }
  30.     public function setEntreprise(?Entreprise $entreprise): self
  31.     {
  32.         $this->entreprise $entreprise;
  33.         return $this;
  34.     }
  35.     public function getContact(): ?Contact
  36.     {
  37.         return $this->contact;
  38.     }
  39.     public function setContact(?Contact $contact): self
  40.     {
  41.         $this->contact $contact;
  42.         return $this;
  43.     }
  44. }