__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace GeoIp2\Record;
/**
* Contains data for the continent record associated with an IP address.
*
* This record is returned by all location services and databases.
*/
class Continent extends AbstractNamedRecord
{
/**
* @var string|null A two character continent code like "NA" (North
* America) or "OC" (Oceania). This attribute is returned by all location
* services and databases.
*/
public readonly ?string $code;
/**
* @var int|null The GeoName ID for the continent. This
* attribute is returned by all location services and databases.
*/
public readonly ?int $geonameId;
/**
* @ignore
*/
public function __construct(array $record, array $locales = ['en'])
{
parent::__construct($record, $locales);
$this->code = $record['code'] ?? null;
$this->geonameId = $record['geoname_id'] ?? null;
}
public function jsonSerialize(): array
{
$js = parent::jsonSerialize();
if ($this->code !== null) {
$js['code'] = $this->code;
}
if ($this->geonameId !== null) {
$js['geoname_id'] = $this->geonameId;
}
return $js;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractNamedRecord.php | File | 1.16 KB | 0777 |
|
| AbstractPlaceRecord.php | File | 1.2 KB | 0777 |
|
| City.php | File | 265 B | 0777 |
|
| Continent.php | File | 1.26 KB | 0777 |
|
| Country.php | File | 1.4 KB | 0777 |
|
| Location.php | File | 3.69 KB | 0777 |
|
| MaxMind.php | File | 745 B | 0777 |
|
| Postal.php | File | 1.42 KB | 0777 |
|
| RepresentedCountry.php | File | 1.08 KB | 0777 |
|
| Subdivision.php | File | 1.06 KB | 0777 |
|
| Traits.php | File | 11.69 KB | 0777 |
|