return $values;
} private static function parseChild(\DOMElement
$child, array
$values): array
{ // translated
if (\
in_array($child->tagName, self::TRANSLATABLE_FIELDS, true
)) { return self::
mapTranslatedTag($child,
$values);
} if ($child->tagName === 'fields'
) { $values[$child->tagName
] = self::
parseChildNodes( $child,
static fn (\DOMElement
$element): CustomFieldType => CustomFieldTypeFactory::
createFromXml($element) );
return $values;
} if ($child->tagName === 'related-entities'
) { $values[self::
kebabCaseToCamelCase($child->tagName
)] = self::
parseChildNodes( $child,
static fn (\DOMElement
$element): string =>
$element->tagName
);