__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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;
abstract class AbstractNamedRecord implements \JsonSerializable
{
/**
* @var string|null The name based on the locales list
* passed to the constructor. This attribute is returned by all location
* services and databases.
*/
public readonly ?string $name;
/**
* @var array An array map where the keys are locale codes
* and the values are names. This attribute is returned by all location
* services and databases.
*/
public readonly array $names;
/**
* @ignore
*/
public function __construct(array $record, array $locales = ['en'])
{
$this->names = $record['names'] ?? [];
foreach ($locales as $locale) {
if (isset($this->names[$locale])) {
$this->name = $this->names[$locale];
return;
}
}
$this->name = null;
}
public function jsonSerialize(): array
{
$js = [];
if (!empty($this->names)) {
$js['names'] = $this->names;
}
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 |
|