$val) { if (property_exists($this, $key)) { $this->{$key} = $val; } } } }