/** * Returns the single instance of this class. * * @return NMStorage * The single instance of this class. */ public static function getInstance() { if (!isset(self::$mInstance)) { $c = __CLASS__; self::$mInstance = new $c(); } return self::$mInstance; }