Geocoder\Provider\GoogleMaps::__construct PHP Method

__construct() public method

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(HttpClient $client, $locale = null, $region = null, $useSsl = false, $apiKey = null)
    {
        parent::__construct($client);
        $this->locale = $locale;
        $this->region = $region;
        $this->useSsl = $useSsl;
        $this->apiKey = $apiKey;
    }

Usage Example

Exemplo n.º 1
0
 public function __construct(HttpAdapterInterface $adapter, $proxy, $locale = NULL, $region = NULL, $apiKey = NULL)
 {
     parent::__construct($adapter, $locale, $region, TRUE, $apiKey);
     $this->proxy = $proxy;
 }
All Usage Examples Of Geocoder\Provider\GoogleMaps::__construct