You are here

public function AnonymousIp::__construct in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/vendor/geoip2/geoip2/src/Model/AnonymousIp.php \GeoIp2\Model\AnonymousIp::__construct()

@ignore

Overrides AbstractModel::__construct

File

includes/vendor/geoip2/geoip2/src/Model/AnonymousIp.php, line 39

Class

AnonymousIp
This class provides the GeoIP2 Anonymous IP model.

Namespace

GeoIp2\Model

Code

public function __construct($raw) {
  parent::__construct($raw);
  $this->isAnonymous = $this
    ->get('is_anonymous');
  $this->isAnonymousVpn = $this
    ->get('is_anonymous_vpn');
  $this->isHostingProvider = $this
    ->get('is_hosting_provider');
  $this->isPublicProxy = $this
    ->get('is_public_proxy');
  $this->isTorExitNode = $this
    ->get('is_tor_exit_node');
  $this->ipAddress = $this
    ->get('ip_address');
}