analyticsToken = $analyticsToken; $this->httpClient = $httpClient; $this->config = $config; $this->responseResolver = $responseResolver; $this->logger = $logger; } /** * Notify MBI about that data collection was finished * * @return bool */ public function execute() { $result = false; if ($this->analyticsToken->isTokenExist()) { $response = $this->httpClient->request( ZendClient::POST, $this->config->getValue($this->notifyDataChangedUrlPath), [ "access-token" => $this->analyticsToken->getToken(), "url" => $this->config->getValue(Store::XML_PATH_SECURE_BASE_URL), ] ); $result = $this->responseResolver->getResult($response); } return (bool)$result; } }