From 20e4e00b3fb6588cccfb49a723641b40f096d33c Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 30 Oct 2018 11:46:33 -0400 Subject: [PATCH] Require API Key --- src/Client.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Client.php b/src/Client.php index a15c853..43905a2 100644 --- a/src/Client.php +++ b/src/Client.php @@ -47,14 +47,14 @@ class Client /** * @param HttpClient $http An HTTP Client implementation. * @param MessageFactory $messageFactory An HTTP message factory implementation. - * @param string|null $apiKey API Key (For non-free accounts) + * @param string $apiKey Ziptastic API Key. * @param string|null $countryCode 2-character country code. Currently only - * supports "US" + * supports "US". */ public function __construct( HttpClient $http, MessageFactory $messageFactory, - string $apiKey = null, + string $apiKey, string $countryCode = 'US' ) { $this->http = $http; @@ -71,13 +71,13 @@ public function __construct( * $ziptastic = Client::create($myApiKey); * ``` * - * @param string|null $apiKey API Key (For non-free accounts) + * @param string $apiKey Ziptastic API Key. * @param string|null $countryCode 2-character country code. Currently only - * supports "US" + * supports "US". * @return Client */ public static function create( - string $apiKey = null, + string $apiKey, string $countryCode = 'US' ): self { $http = HttpClientDiscovery::find();