BanModel::instance PHP 메소드

instance() 공개 정적인 메소드

Get the singleton instance of the {@link BanModel} class.
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;
    }

Usage Example

예제 #1
0
 /**
  * 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;
 }