name = $name; $this->type = $type; $this->description = $description; $this->dynamicFilters = new ArrayCollection(); } /** * @return string */ public function getName() { return $this->name; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getType() { return $this->type; } /** * @param string $type */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return DynamicSegmentFilterEntity[]|ArrayCollection */ public function getDynamicFilters() { return $this->dynamicFilters; } public function isDynamic(): bool { return $this->getType() === self::TYPE_DYNAMIC; } }