From 38aa582d5b8af2073819d53ea65958044ec12d3d Mon Sep 17 00:00:00 2001 From: Aternus Date: Sun, 9 Jun 2024 22:04:38 +0300 Subject: [PATCH] FEAT: Client Options - removed not implemented options --- src/Client.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/Client.php b/src/Client.php index 620e664..c59693f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -181,11 +181,12 @@ final class Client * - username: GeoNames username. * - token: GeoNames token (i.e. premium user key). * - api_url: URL of the GeoNames web service. - * - fallback_api_url: Fallback URL of the GeoNames web service. * - connect_timeout: HTTP Client connection timeout. * The number of seconds to wait while trying to connect to a server. * The default behavior, `0`, means to wait indefinitely. - * - fallback_api_url_trigger_count: Number of connection timeouts + * + * - fallback_api_url: ⚠️ NOT IMPLEMENTED YET. Fallback URL of the GeoNames web service. + * - fallback_api_url_trigger_count: ⚠️ NOT IMPLEMENTED YET. Number of connection timeouts * before using the `fallback_api_url` * * @link https://www.geonames.org/ @@ -198,9 +199,7 @@ final class Client * username?: string, * token?: string, * api_url?: string, - * fallback_api_url?: string, * connect_timeout?: int, - * fallback_api_url_trigger_count?: int, * } $options Optional. Client options. */ public function __construct(string $username, ?string $token = null, array $options = []) @@ -250,9 +249,7 @@ public function setConnectTimeout(int $connect_timeout): void * username: string, * token: string, * api_url: string, - * fallback_api_url: string, * connect_timeout: int, - * fallback_api_url_trigger_count: int, * } */ public function getOptions(string $key = '') @@ -269,18 +266,14 @@ public function getOptions(string $key = '') * username?: string, * token?: string, * api_url?: string, - * fallback_api_url?: string, * connect_timeout?: int, - * fallback_api_url_trigger_count?: int, * } $options * * @return array{ * username: string, * token: string, * api_url: string, - * fallback_api_url: string, * connect_timeout: int, - * fallback_api_url_trigger_count: int, * } */ public function setOptions(array $options): array