/** * @param HeadAPI $api * @param Unit $unit * @param ShopModeResponse $shopModeResponse */ protected function handleShopModeResponse($api, $unit, $shopModeResponse) { $this->setUnitContext($api, $unit, 'alreadyProcessed', true); $this->setUnitContext($api, $unit, 'view', $shopModeResponse->getViewMode()); $this->addErrorMessageToUnitContext($api, $unit, $shopModeResponse->getErrors()); }