'Products', self::ORDER => 'Orders', self::USER => 'Users', ); public static function name($type) { $map = ProfileTypeEnum::KEY_TO_NAME_MAP; return isset($map[$type]) ? $map[$type] : ''; } }