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