public function CleantalkRequest::__construct in Anti Spam by CleanTalk 7.4
Same name and namespace in other branches
- 7.5 src/CleantalkRequest.php \CleantalkRequest::__construct()
- 7 cleantalk.module \CleantalkRequest::__construct()
- 7.2 cleantalk.module \CleantalkRequest::__construct()
Fill params with constructor
Parameters
type $params:
File
- src/
CleantalkRequest.php, line 162
Class
- CleantalkRequest
- Request class
Code
public function __construct($params = null) {
if (is_array($params) && count($params) > 0) {
foreach ($params as $param => $value) {
$this->{$param} = $value;
}
}
}