public static instance ( ) : BanModel | ||
리턴 | BanModel | Returns the singleton instance of this class. |
public static function instance()
{
if (!isset(self::$instance)) {
self::$instance = new BanModel();
}
return self::$instance;
}
/** * Get the singleton instance of the {@link BanModel} class. * * @return BanModel Returns the singleton instance of this class. */ public static function instance() { if (!isset(self::$instance)) { self::$instance = new BanModel(); } return self::$instance; }