self::
getAppEntity('appId'
),
[ 'en-GB' => \
json_encode(['myCustomSnippetName' => 'newTranslation'
], \JSON_THROW_ON_ERROR
),
'foo-bar' => \
json_encode(['myCustomSnippetName' => 'newTranslation'
], \JSON_THROW_ON_ERROR
),
],
'The locale foo-bar does not exists.',
];
} private static function getAppEntity(?string
$appId = null
): AppEntity
{ $appEntity =
new AppEntity();
$appEntity->
setId($appId ?? Uuid::
randomHex());
return $appEntity;
} /**
* @param array<int, array<string, string>> $snippetsFromApp
* @param array<int, array<string, string>> $newSnippets
* @param array<int, array<string, string>> $deletesSnippetIds
*/