/** * @param \LinguaLeo\ExpertSender\ExpertSenderResponse $response */ public function __construct($response) { parent::__construct($response); $this->parse(); }
/** * @param string $method * @param ApiResult $result */ protected function logApiResult($method, ApiResult $result) { if ($result->isOk()) { return; } $this->logger->error(sprintf('ES method "%s" error response: %s.', $method, json_encode((array) $result, JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT))); }