Ejemplo n.º 1
0
     * Disable instance creation.
     */
    private function __construct()
    {
    }
    /**
     * Get an instance of the Captcha class.
     *
     * @param  array  $p_Config
     * @return object
     */
    public static function GetCaptchaInstance($p_Config = array())
    {
        if (!isset(self::$m_Captcha)) {
            self::$m_Captcha = new BotDetectCaptchaHelper($p_Config);
        }
        return self::$m_Captcha;
    }
    /**
     * Get BotDetect Laravel CAPTCHA composer package information.
     *
     * @return array
     */
    public static function GetProductInfo()
    {
        return self::$ProductInfo;
    }
}
// static field initialization
BotDetectCaptcha::$ProductInfo = ['name' => 'BotDetect PHP Captcha integration for the Laravel framework', 'version' => '3.2.1'];