$this->currencies =
[];
} /**
* @param array<string, array{gross:float, net:float, linked?:bool}> $price
*
* @return array<string, array{gross:float, net:float, linked?:bool}>
*/
private function validatePrice(array
$price): array
{ $price =
$this->
resolveIsoCodes($price);
if (!\
array_key_exists(Defaults::CURRENCY,
$price)) { throw CartException::
invalidPriceDefinition();
} foreach ($price as $id =>
$value) { if (!Uuid::
isValid($id)) { throw CartException::
invalidPriceDefinition();
} if (!\
array_key_exists('gross',
$value)) {