*/ protected $locales; /** * @var \WP_Statistics\Dependencies\GeoIp2\Record\MaxMind */ protected $maxmind; /** * @var \WP_Statistics\Dependencies\GeoIp2\Record\Country */ protected $registeredCountry; /** * @var \WP_Statistics\Dependencies\GeoIp2\Record\RepresentedCountry */ protected $representedCountry; /** * @var \WP_Statistics\Dependencies\GeoIp2\Record\Traits */ protected $traits; /** * @ignore */ public function __construct(array $raw, array $locales = ['en']) { parent::__construct($raw); $this->continent = new \WP_Statistics\Dependencies\GeoIp2\Record\Continent( $this->get('continent'), $locales ); $this->country = new \WP_Statistics\Dependencies\GeoIp2\Record\Country( $this->get('country'), $locales ); $this->maxmind = new \WP_Statistics\Dependencies\GeoIp2\Record\MaxMind($this->get('maxmind')); $this->registeredCountry = new \WP_Statistics\Dependencies\GeoIp2\Record\Country( $this->get('registered_country'), $locales ); $this->representedCountry = new \WP_Statistics\Dependencies\GeoIp2\Record\RepresentedCountry( $this->get('represented_country'), $locales ); $this->traits = new \WP_Statistics\Dependencies\GeoIp2\Record\Traits($this->get('traits')); $this->locales = $locales; } }