abstract class Api

Class Api

Constants

SERVICE_ENDPOINT

Properties

protected GoogleMapsApi $google_maps_api
protected string $result_collection
protected GoogleMapsResponse $response
protected GoogleMapsRequest $request

Methods

__construct(array $config = [])

Api constructor.

array
getServiceConfig(array $config = [])

No description

string
getServiceEndpoint()

No description

callApi(array $params, string|null $endpoint = null)

No description

createRequest(array $params, string|null $endpoint = null)

No description

getResponse()

No description

getGoogleMapsApi()

No description

Api
setGoogleMapsApi(GoogleMapsApi $google_maps_api)

No description

bool
responseHasNewPage()

No description

Details

at line 57
__construct(array $config = [])

Api constructor.

Parameters

array $config

at line 69
protected array getServiceConfig(array $config = [])

Parameters

array $config

Return Value

array

at line 80
string getServiceEndpoint()

Return Value

string

at line 92
GoogleMapsResultsCollection callApi(array $params, string|null $endpoint = null)

Parameters

array $params
string|null $endpoint

Return Value

GoogleMapsResultsCollection

at line 106
GoogleMapsRequest createRequest(array $params, string|null $endpoint = null)

Parameters

array $params
string|null $endpoint since 0.5.0

Return Value

GoogleMapsRequest

at line 117
GoogleMapsResultsCollection getResultsCollections()

at line 130
GoogleMapsResponse getResponse()

Return Value

GoogleMapsResponse

at line 141
GoogleMapsApi getGoogleMapsApi()

Return Value

GoogleMapsApi

at line 152
Api setGoogleMapsApi(GoogleMapsApi $google_maps_api)

Parameters

GoogleMapsApi $google_maps_api

Return Value

Api

at line 163
GoogleMapsResultsCollection getNextPage()

at line 176
bool responseHasNewPage()

Return Value

bool