public final function set_properties($key, $value = null)
{
if (is_array($key)) {
$key = self::filter_possible_properties($key);
foreach ($key as $sub_key => $sub_value) {
$this->set_properties($sub_key, $sub_value);
}
return;
}
if (!in_array($key, self::get_properties_keys())) {
return;
}
$this->_properties[$key] = $value;
}