src/Entity/Gos/LeadFormResponsePositionValue.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\LeadFormResponsePositionValueRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=LeadFormResponsePositionValueRepository::class)
  9.  */
  10. class LeadFormResponsePositionValue
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=LeadFormResponsePosition::class, inversedBy="leadFormResponsePositionValues")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $leadFormResponsePosition;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $value;
  27.     /**
  28.      * @ORM\ManyToMany(targetEntity=ContactSegmentation::class)
  29.      */
  30.     private $contactSegmentations;
  31.     public function __construct()
  32.     {
  33.         $this->contactSegmentations = new ArrayCollection();
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getLeadFormResponsePosition(): ?LeadFormResponsePosition
  40.     {
  41.         return $this->leadFormResponsePosition;
  42.     }
  43.     public function setLeadFormResponsePosition(?LeadFormResponsePosition $leadFormResponsePosition): self
  44.     {
  45.         $this->leadFormResponsePosition $leadFormResponsePosition;
  46.         return $this;
  47.     }
  48.     public function getValue(): ?string
  49.     {
  50.         return $this->value;
  51.     }
  52.     public function setValue(string $value): self
  53.     {
  54.         $this->value $value;
  55.         return $this;
  56.     }
  57.     public function getContactSegmentations(): Collection
  58.     {
  59.         return $this->contactSegmentations;
  60.     }
  61.     public function addContactSegmentation(ContactSegmentation $contactSegmentation): self
  62.     {
  63.         if (!$this->contactSegmentations->contains($contactSegmentation)) {
  64.             $this->contactSegmentations[] = $contactSegmentation;
  65.         }
  66.         return $this;
  67.     }
  68.     public function removeContactSegmentation(ContactSegmentation $contactSegmentation): self
  69.     {
  70.         if ($this->contactSegmentations->contains($contactSegmentation)) {
  71.             $this->contactSegmentations->removeElement($contactSegmentation);
  72.         }
  73.         return $this;
  74.     }
  75. }