Skip to content

Commit

Permalink
Require API Key
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie committed Oct 30, 2018
1 parent 4593f2e commit 20e4e00
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 20e4e00

Please sign in to comment.