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

Open in your IDE?
  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. /**
  9.  * @ORM\Entity(repositoryClass=FormateurEntrepriseRepository::class)
  10.  */
  11. class FormateurEntreprise extends AbstractEntity
  12. {
  13.     /**
  14.      * @ORM\ManyToOne(targetEntity=Formateur::class, inversedBy="formateurEntreprises")
  15.      */
  16.     private ?Formateur $formateur null;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Entreprise::class, inversedBy="formateurEntreprises", cascade={"persist"})
  19.      */
  20.     private ?Entreprise $entreprise null;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Contact::class, cascade={"persist"})
  23.      */
  24.     private ?Contact $contact null;
  25.     public function getFormateur(): ?Formateur
  26.     {
  27.         return $this->formateur;
  28.     }
  29.     public function setFormateur(?Formateur $formateur): self
  30.     {
  31.         $this->formateur $formateur;
  32.         return $this;
  33.     }
  34.     public function getEntreprise(): ?Entreprise
  35.     {
  36.         return $this->entreprise;
  37.     }
  38.     public function setEntreprise(?Entreprise $entreprise): self
  39.     {
  40.         $this->entreprise $entreprise;
  41.         return $this;
  42.     }
  43.     public function getContact(): ?Contact
  44.     {
  45.         return $this->contact;
  46.     }
  47.     public function setContact(?Contact $contact): self
  48.     {
  49.         $this->contact $contact;
  50.         return $this;
  51.     }
  52. }