/** * returns instance of the class (Singleton Design Pattern) * @return <type> */ public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new ErrorLog(); } return self::$instance; }