public function SmartIpLocation::set in Smart IP 8.2
Same name and namespace in other branches
- 8.4 src/SmartIpLocation.php \Drupal\smart_ip\SmartIpLocation::set()
- 8.3 src/SmartIpLocation.php \Drupal\smart_ip\SmartIpLocation::set()
Sets an item in Smart IP location data.
Parameters
string $key: Name of the item in Smart IP location data.
mixed $value: Value of the item of interest.
Overrides SmartIpLocationInterface::set
1 call to SmartIpLocation::set()
- SmartIpLocation::setData in src/
SmartIpLocation.php - Sets the Smart IP location data..
File
- src/
SmartIpLocation.php, line 172 - Contains \Drupal\smart_ip\SmartIpLocation.
Class
- SmartIpLocation
- Implements wrapper and utility methods for Smart IP's data location.
Namespace
Drupal\smart_ipCode
public function set($key, $value) {
$this->{$key} = $value;
$this->allData[$key] = $value;
}