public function StatsD::__construct in StatsD 7.2
Constructor. Copy valid arguments to public properties, ignore others.
Parameters
array $arguments: A name-value hash.
File
- includes/
statsd.inc, line 25
Class
- StatsD
- Sends statistics to the stats daemon over UDP.
Code
public function __construct($arguments) {
$properties = $this
->getDefaultProperties();
foreach ($arguments as $name => $value) {
if (isset($properties[$name])) {
$this->{$name} = $value;
}
}
}