public __construct ( Http\Client\HttpClient $client, string $locale = null, string $region = null, boolean $useSsl = false, string $apiKey = null ) | ||
$client | Http\Client\HttpClient | An HTTP adapter |
$locale | string | A locale (optional) |
$region | string | Region biasing (optional) |
$useSsl | boolean | Whether to use an SSL connection (optional) |
$apiKey | string | Google Geocoding API key (optional) |
public function __construct(HttpAdapterInterface $adapter, $proxy, $locale = NULL, $region = NULL, $apiKey = NULL) { parent::__construct($adapter, $locale, $region, TRUE, $apiKey); $this->proxy = $proxy; }
/** * @param HttpAdapterInterface $adapter An HTTP adapter. * @param string $clientId Your Client ID. * @param string $privateKey Your Private Key (optional). * @param string $locale A locale (optional). * @param string $region Region biasing (optional). * @param bool $useSsl Whether to use an SSL connection (optional) */ public function __construct(HttpAdapterInterface $adapter, $clientId, $privateKey = null, $locale = null, $region = null, $useSsl = false) { parent::__construct($adapter, $locale, $region, $useSsl); $this->clientId = $clientId; $this->privateKey = $privateKey; }