self::CATEGORY_REVOLT, self::CATEGORY_LABEL_DREAM => self::CATEGORY_DREAM, self::CATEGORY_LABEL_PROJECTBOOST => self::CATEGORY_PROJECTBOOST, self::CATEGORY_LABEL_PROJECTINSPIRING => self::CATEGORY_PROJECTINSPIRING, ]; } static function getCategoryByLabel(string $label): string { $categoryArray = self::getCategory(); return $categoryArray[$label]; } }