__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 subdivisions associated with an IP address.
*
* This record is returned by all location databases and services besides
* Country.
*/
class Subdivision extends AbstractPlaceRecord
{
/**
* @var string|null This is a string up to three characters long
* contain the subdivision portion of the ISO 3166-2 code. See
* https://en.wikipedia.org/wiki/ISO_3166-2. This attribute is returned by all
* location databases and services except Country.
*/
public readonly ?string $isoCode;
/**
* @ignore
*/
public function __construct(array $record, array $locales = ['en'])
{
parent::__construct($record, $locales);
$this->isoCode = $record['iso_code'] ?? null;
}
public function jsonSerialize(): array
{
$js = parent::jsonSerialize();
if ($this->isoCode !== null) {
$js['iso_code'] = $this->isoCode;
}
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 |
|