__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 AbstractPlaceRecord extends AbstractNamedRecord
{
/**
* @var int|null A value from 0-100 indicating MaxMind's
* confidence that the location level is correct. This attribute is only available
* from the Insights service and the GeoIP2 Enterprise database.
*/
public readonly ?int $confidence;
/**
* @var int|null The GeoName ID for the location level. 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->confidence = $record['confidence'] ?? null;
$this->geonameId = $record['geoname_id'] ?? null;
}
public function jsonSerialize(): array
{
$js = parent::jsonSerialize();
if ($this->confidence !== null) {
$js['confidence'] = $this->confidence;
}
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 |
|