public function SmartIpLocation::__construct in Smart IP 8.2
Same name and namespace in other branches
- 8.4 src/SmartIpLocation.php \Drupal\smart_ip\SmartIpLocation::__construct()
- 8.3 src/SmartIpLocation.php \Drupal\smart_ip\SmartIpLocation::__construct()
Constructs Smart IP location.
Parameters
array $values: Array of values for the Smart IP location.
File
- src/
SmartIpLocation.php, line 120 - Contains \Drupal\smart_ip\SmartIpLocation.
Class
- SmartIpLocation
- Implements wrapper and utility methods for Smart IP's data location.
Namespace
Drupal\smart_ipCode
public function __construct(array $values = array()) {
if (!empty($values)) {
$this
->setData($values);
}
}