REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.49 KB
Close
/home/getspomw/royalsquad.us/vendor/geoip2/geoip2/src/Model/Domain.php
Text
Base64
<?php declare(strict_types=1); namespace GeoIp2\Model; use GeoIp2\Util; /** * This class provides the GeoIP2 Domain model. */ class Domain implements \JsonSerializable { /** * @var string|null The second level domain associated with the * IP address. This will be something like "example.com" or * "example.co.uk", not "foo.example.com". */ public readonly ?string $domain; /** * @var string the IP address that the data in the model is * for */ public readonly string $ipAddress; /** * @var string The network in CIDR notation associated with * the record. In particular, this is the largest network where all of the * fields besides $ipAddress have the same value. */ public readonly string $network; /** * @ignore * * @param array<string, mixed> $raw */ public function __construct(array $raw) { $this->domain = $raw['domain'] ?? null; $ipAddress = $raw['ip_address']; $this->ipAddress = $ipAddress; $this->network = Util::cidr($ipAddress, $raw['prefix_len']); } /** * @return array<string, mixed>|null */ public function jsonSerialize(): ?array { $js = []; if ($this->domain !== null) { $js['domain'] = $this->domain; } $js['ip_address'] = $this->ipAddress; $js['network'] = $this->network; return $js; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AnonymousIp.php
3.03 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AnonymousPlus.php
1.77 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Asn.php
1.97 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
City.php
3.70 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConnectionType.php
1.58 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Country.php
3.63 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Domain.php
1.49 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Enterprise.php
279 B
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Insights.php
270 B
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Isp.php
3.46 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).