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