diff --git a/src/Service/CompanyService.php b/src/Service/CompanyService.php index 8388d37..bc9cf7e 100644 --- a/src/Service/CompanyService.php +++ b/src/Service/CompanyService.php @@ -36,12 +36,13 @@ public function search(array $params) : ListResult /** * This function is used to call the endpoint that gets the company report - * @param string $id The ID of the given company that you want to get a report for - * @return array Returns the results of the get endpoint + * @param string $id The ID of the given company that you want to get a report for + * @param string $reportLang + * @return Company Returns the results of the get endpoint */ - public function get(string $id) : Company + public function get(string $id, string $reportLang = 'en') : Company { - return new Company($this->client, $this->client->get('companies/'.$id)); + return new Company($this->client, $this->client->get('companies/'.$id, ['language' => $reportLang])); } /**