/** * This method return a singleton instance of __ErrorHandler * * @return error _manager A singleton reference to the __ErrorHandler */ public static function &getInstance() { if (self::$_instance == null) { // Use "Lazy initialization" self::$_instance = new __ErrorHandler(); } return self::$_instance; }