/**
* @param list<array<string, mixed>> $violationsData
*
* @return StoreLicenseViolationStruct[]
*/
private function getViolations(array
$violationsData): array
{ $violations =
[];
foreach ($violationsData as $violationData) { $violationData['actions'
] =
$this->
getActions($violationData['actions'
] ??
[]);
$violationData['type'
] =
(new StoreLicenseViolationTypeStruct())->
assign($violationData['type'
]);
$expired =
new StoreLicenseViolationStruct();
$expired->
assign($violationData);
$violations[] =
$expired;
} return $violations;
} /**
* @param list<array<string, mixed>> $actionsData
*
* @return StoreActionStruct[]
*/