You are here

class ConnectionType in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/geoip2/geoip2/src/Model/ConnectionType.php \GeoIp2\Model\ConnectionType

This class provides the GeoIP2 Connection-Type model.

@property string|null $connectionType The connection type may take the following values: "Dialup", "Cable/DSL", "Corporate", "Cellular". Additional values may be added in the future.

@property string $ipAddress The IP address that the data in the model is for.

Hierarchy

Expanded class hierarchy of ConnectionType

1 string reference to 'ConnectionType'
Reader::connectionType in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Connection Type model.

File

includes/vendor/geoip2/geoip2/src/Model/ConnectionType.php, line 16

Namespace

GeoIp2\Model
View source
class ConnectionType extends AbstractModel {
  protected $connectionType;
  protected $ipAddress;

  /**
   * @ignore
   */
  public function __construct($raw) {
    parent::__construct($raw);
    $this->connectionType = $this
      ->get('connection_type');
    $this->ipAddress = $this
      ->get('ip_address');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractModel::$raw protected property
AbstractModel::get protected function @ignore
AbstractModel::jsonSerialize public function
AbstractModel::__get public function @ignore 1
AbstractModel::__isset public function @ignore
ConnectionType::$connectionType protected property
ConnectionType::$ipAddress protected property
ConnectionType::__construct public function @ignore Overrides AbstractModel::__construct