public function City::__construct in Smart IP 6.2
Same name and namespace in other branches
- 7.2 includes/vendor/geoip2/geoip2/src/Model/City.php \GeoIp2\Model\City::__construct()
@ignore
Overrides Country::__construct
File
- includes/
vendor/ geoip2/ geoip2/ src/ Model/ City.php, line 79
Class
- City
- Model class for the data returned by GeoIP2 City web service and database.
Namespace
GeoIp2\ModelCode
public function __construct($raw, $locales = array(
'en',
)) {
parent::__construct($raw, $locales);
$this->city = new \GeoIp2\Record\City($this
->get('city'), $locales);
$this->location = new \GeoIp2\Record\Location($this
->get('location'));
$this->postal = new \GeoIp2\Record\Postal($this
->get('postal'));
$this
->createSubdivisions($raw, $locales);
}