else { if (method_exists($this->countryGateway, 'getFallbackCountry'
)) { $country =
$this->countryGateway->
getFallbackCountry($context);
} } $state = null;
if ($stateId !== null
) { $state =
$this->countryGateway->
getState($stateId,
$context);
} if (!
$area &&
$country instanceof Country && \
is_int($country->
getAreaId())) { $area =
$this->countryGateway->
getArea($country->
getAreaId(),
$context);
} $taxRules =
$this->taxGateway->
getRules($currentCustomerGroup,
$area,
$country,
$state);
$priceGroups =
$this->priceGroupDiscountGateway->
getPriceGroups($currentCustomerGroup,
$context);
return new ShopContext( $baseUrl,
$shop,
$currency,