$currency = null;
if ($currencyId !== null
) { $currency =
$this->currencyGateway->
getList([$currencyId]);
$currency =
array_shift($currency);
} if (!
$currency) { $currency =
$shop->
getCurrency();
} $context =
new ShopContext($baseUrl,
$shop,
$currency,
$currentCustomerGroup,
$fallbackCustomerGroup,
[],
[]);
$area = null;
if ($areaId !== null
) { $area =
$this->countryGateway->
getArea($areaId,
$context);
} $country = null;
if ($countryId !== null
) { $country =
$this->countryGateway->
getCountry($countryId,
$context);
} else { if (method_exists($this->countryGateway, 'getFallbackCountry'
)) {