testCategoryPresetProvider = $testCategoryPresetProvider; } public function getMap(): array { $presetList = $this->testCategoryPresetProvider ->findPresetGroupOrFail(TestCategoryPresetProvider::GROUP_TOOLS); $presetMap = []; /** @var TestCategoryPreset $preset */ foreach ($presetList['presets'] as $preset) { $presetMap[] = [$preset->getId() => $preset->getQtiCategory()]; } return $presetMap; } }