src/Entity/SocialAdhesion.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SocialAdhesionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SocialAdhesionRepository::class)
  7.  */
  8. class SocialAdhesion
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $mediaProfiler;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Adhesion", inversedBy="socialAdhesions")
  22.      */
  23.     private $Adhesion;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getMediaProfiler(): ?string
  29.     {
  30.         return $this->mediaProfiler;
  31.     }
  32.     public function setMediaProfiler(string $mediaProfiler): self
  33.     {
  34.         $this->mediaProfiler $mediaProfiler;
  35.         return $this;
  36.     }
  37.     public function getAdhesion(): ?Adhesion
  38.     {
  39.         return $this->Adhesion;
  40.     }
  41.     public function setAdhesion(?Adhesion $Adhesion): self
  42.     {
  43.         $this->Adhesion $Adhesion;
  44.         return $this;
  45.     }
  46.     public function addAdhesion(Adhesion $Adhesion): void
  47.     {
  48.         if (!$this->Adhesion->contains($Adhesion)) {
  49.             $this->Adhesion->add($Adhesion);
  50.         }
  51.     }
  52. }