$val) { if (property_exists($this, $key)) { $this->{$key} = $val; } } } public function error($msg): bool { $this->error = $msg; return false; } }