$title = ChangelogSection::core->value;
$getContentFnc =
static fn (ChangelogDefinition
$definition): ?string =>
$definition->
getCore();
break;
case ChangelogSection::api->name:
$title = ChangelogSection::api->value;
$getContentFnc =
static fn (ChangelogDefinition
$definition): ?string =>
$definition->
getApi();
break;
case ChangelogSection::storefront->name:
$title = ChangelogSection::storefront->value;
$getContentFnc =
static fn (ChangelogDefinition
$definition): ?string =>
$definition->
getStorefront();
break;
case ChangelogSection::administration->name:
$title = ChangelogSection::administration->value;
$getContentFnc =
static fn (ChangelogDefinition
$definition): ?string =>
$definition->
getAdministration();
break;
case ChangelogSection::upgrade->name:
$title = ChangelogSection::upgrade->value;
$getContentFnc =
static fn (ChangelogDefinition
$definition): ?string =>
$definition->
getUpgradeInformation();