1<?php 2 3namespace GeoIp2\Model; 4 5/** 6 * This class provides the GeoIP2 Domain model. 7 * 8 * @property-read string|null $domain The second level domain associated with the 9 * IP address. This will be something like "example.com" or 10 * "example.co.uk", not "foo.example.com". 11 * @property-read string $ipAddress The IP address that the data in the model is 12 * for. 13 */ 14class Domain extends AbstractModel 15{ 16 protected $domain; 17 protected $ipAddress; 18 19 /** 20 * @ignore 21 * 22 * @param mixed $raw 23 */ 24 public function __construct($raw) 25 { 26 parent::__construct($raw); 27 28 $this->domain = $this->get('domain'); 29 $this->ipAddress = $this->get('ip_address'); 30 } 31} 32