public function __set($property, $value) { if (method_exists($this, $method = 'set' . $property)) { $this->{$method}($value); return $value; } else { return MNULL::getInstance(); } }