/** * Returns the shared instance of this class. * * @return LogModel Returns the instance. */ private static function instance() { if (!self::$instance) { self::$instance = new LogModel(); } return self::$instance; }