<?phpnamespace App\Entity\Gos;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ContactSegmentationRepository") */class ContactSegmentation{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="string", length=255) */ private $salesmanagoTag; /** * @ORM\ManyToMany(targetEntity=ContactSegmentationAction::class, mappedBy="contactSegmentations") */ private $contactSegmentationActions; public function __construct() { $this->contactSegmentationActions = new ArrayCollection(); } public function __toString() { return $this->name; } /** * @return mixed */ public function getId() { return $this->id; } public function getName(): ?string { return $this->name; } public function setName($name): void { $this->name = $name; } public function getSalesmanagoTag(): ?string { return $this->salesmanagoTag; } public function setSalesmanagoTag($salesmanagoTag): void { $this->salesmanagoTag = $salesmanagoTag; } /** * @return Collection|ContactSegmentationAction[] */ public function getContactSegmentationActions(): Collection { return $this->contactSegmentationActions; } public function addContactSegmentationAction(ContactSegmentationAction $contactSegmentationAction): self { if (!$this->contactSegmentationActions->contains($contactSegmentationAction)) { $this->contactSegmentationActions[] = $contactSegmentationAction; $contactSegmentationAction->addContactSegmentation($this); } return $this; } public function removeContactSegmentationAction(ContactSegmentationAction $contactSegmentationAction): self { if ($this->contactSegmentationActions->contains($contactSegmentationAction)) { $this->contactSegmentationActions->removeElement($contactSegmentationAction); $contactSegmentationAction->removeContactSegmentation($this); } return $this; }}