getOption(self::OPTION_STRUCTURE_MAP); if (!$this->getAdvancedSearchChecker()->isEnabled()) { return $map[$structure]['default'] ?? $map['default']; } return $map[$structure]['advanced'] ?? $map['default']; } private function getAdvancedSearchChecker(): AdvancedSearchChecker { return $this->getServiceLocator()->get(AdvancedSearchChecker::class); } }