public function __set($name, $value) { if (property_exists($this, $name)) { $this->{$name} = $value; } }