/**
* @return array<string, mixed>
*/
private function generateActionConfig(string
$action): array
{ $tagIds =
$this->
getTags();
return match ($action) { RemoveOrderTagAction::
getName(), AddOrderTagAction::
getName() =>
[ 'entity' => 'order',
'tagIds' =>
$this->faker->
randomElements($tagIds,
random_int(1, \
count($tagIds))),
],
AddCustomerTagAction::
getName() =>
[ 'entity' => 'customer',
'tagIds' =>
$this->faker->
randomElements($tagIds,
random_int(1, \
count($tagIds))),
],
RemoveCustomerTagAction::
getName() =>
[ 'entity' => 'customer',
'tagIds' =>
$this->faker->
randomElements($tagIds,
random_int(1, \
count($tagIds))),
],
GenerateDocumentAction::
getName() =>
[ 'documentType' => 'invoice',