filterType = $filterType; $this->action = $action; $this->filterData = $filterData; } public function getData(): ?array { return $this->filterData; } /** * @return mixed|null */ public function getParam(string $name) { return $this->filterData[$name] ?? null; } public function getFilterType(): ?string { return $this->filterType; } public function getAction(): ?string { // bc compatibility, the wordpress user role segment didn't have action if ($this->getFilterType() === self::TYPE_USER_ROLE && !$this->action) { return UserRole::TYPE; } return $this->action; } }