class GoogleMapsResponse

Class GoogleMapsResponse

Properties

protected Response $response
protected array $results contains an array of places, with information about each.
protected string $status contains metadata on the request.
protected string $error_message
protected array $array_response
protected null|array $http_status_code
protected null|array $html_attributions may contain a set of attributions about this listing which must be displayed to the user (some listings may not have attribution).
protected null|string $next_page_token

Methods

__construct(Response $response)

GoogleMapsResponse constructor.

setResponse(Response $response)

No description

array
toArray(string $json_response)

No description

string
getStatus()

No description

setStatus(string $status)

No description

int
checkHttpStatusCode()

Check HTTP status code (silent/No exceptions!)

array
getResults()

No description

$this
setResults(array $results)

No description

array
getArrayResponse()

No description

setArrayResponse(array $array_response)

No description

mixed
getErrorMessage()

No description

setErrorMessage($error_message)

No description

int
getHttpStatusCode()

No description

array|null
getHtmlAttributions()

No description

setHtmlAttributions(array|null $html_attributions)

No description

string
getNextPageToken()

No description

setNextPageToken($next_page_token)

No description

Details

at line 83
__construct(Response $response)

GoogleMapsResponse constructor.

Parameters

Response $response

at line 98
GoogleMapsResponse setResponse(Response $response)

Parameters

Response $response

Return Value

GoogleMapsResponse

at line 112
protected GoogleMapsResponse parseResponse()

at line 164
array toArray(string $json_response)

Parameters

string $json_response

Return Value

array

at line 175
string getStatus()

Return Value

string

at line 186
GoogleMapsResponse setStatus(string $status)

Parameters

string $status

Return Value

GoogleMapsResponse

at line 198
protected int checkHttpStatusCode()

Check HTTP status code (silent/No exceptions!)

Return Value

int

at line 209
array getResults()

Return Value

array

at line 220
$this setResults(array $results)

Parameters

array $results

Return Value

$this

at line 231
array getArrayResponse()

Return Value

array

at line 242
GoogleMapsResponse setArrayResponse(array $array_response)

Parameters

array $array_response

Return Value

GoogleMapsResponse

at line 253
mixed getErrorMessage()

Return Value

mixed

at line 264
GoogleMapsResponse setErrorMessage($error_message)

Parameters

$error_message

Return Value

GoogleMapsResponse

at line 275
int getHttpStatusCode()

Return Value

int

at line 284
array|null getHtmlAttributions()

Return Value

array|null

at line 295
GoogleMapsResponse setHtmlAttributions(array|null $html_attributions)

Parameters

array|null $html_attributions

Return Value

GoogleMapsResponse

at line 306
string getNextPageToken()

Return Value

string

at line 317
GoogleMapsResponse setNextPageToken($next_page_token)

Parameters

$next_page_token

Return Value

GoogleMapsResponse