\GeoIp2\RecordContinent

Contains data for the continent record associated with an IP address.

This record is returned by all location services and databases.

Summary

Methods
Properties
Constants
__isset()
jsonSerialize()
$code
$geonameId
$name
$names
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$code

$code : string|null

A two character continent code like "NA" (North America) or "OC" (Oceania). This attribute is returned by all location services and databases.

Type

string|null

$geonameId

$geonameId : int|null

The GeoName ID for the continent. This attribute is returned by all location services and databases.

Type

int|null

$name

$name : string|null

Returns the name of the continent based on the locales list passed to the constructor. This attribute is returned by all location services and databases.

Type

string|null

$names

$names : array|null

An array map where the keys are locale codes and the values are names. This attribute is returned by all location services and databases.

Type

array|null

Methods

__isset()

__isset(string  $attr) : bool

Parameters

string $attr

Returns

bool —

jsonSerialize()

jsonSerialize() : ?array

Returns

?array —