Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/main/vendor/geoip2/geoip2/src/Model/ |
Upload File : |
<?php declare(strict_types=1); namespace GeoIp2\Model; use GeoIp2\Util; /** * This class provides the GeoIP2 Domain model. * * @property-read string|null $domain The second level domain associated with the * IP address. This will be something like "example.com" or * "example.co.uk", not "foo.example.com". * @property-read string $ipAddress The IP address that the data in the model is * for. * @property-read string $network 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. */ class Domain extends AbstractModel { /** * @var string|null */ protected $domain; /** * @var string */ protected $ipAddress; /** * @var string */ protected $network; /** * @ignore */ public function __construct(array $raw) { parent::__construct($raw); $this->domain = $this->get('domain'); $ipAddress = $this->get('ip_address'); $this->ipAddress = $ipAddress; $this->network = Util::cidr($ipAddress, $this->get('prefix_len')); } }