Captcha
in package
Captcha
Tags
Table of Contents
Properties
- $instance : Captcha
- $method : string
- $objCaptcha : CaptchaInterface
Methods
- __call() : mixed
- getInstance() : Captcha
- Returns a singleton instance of this class
- getMethodName() : string
- Returns the name of the captcha method in use
- __construct() : mixed
- Creates the singleton instance of this class
Properties
$instance
protected
static Captcha
$instance
= null
Singleton instance of this class
$method
protected
string
$method
Captcha method in use
$objCaptcha
protected
CaptchaInterface
$objCaptcha
Instance of the captcha method in use
Methods
__call()
public
__call(mixed $name, mixed $args) : mixed
Parameters
- $name : mixed
- $args : mixed
Attributes
- #[ReturnTypeWillChange]
getInstance()
Returns a singleton instance of this class
public
static getInstance() : Captcha
Return values
Captcha —Singleton instance of this class
getMethodName()
Returns the name of the captcha method in use
public
getMethodName() : string
Return values
string —One of "contrexxCaptcha", "reCaptcha" or "hCaptcha"
__construct()
Creates the singleton instance of this class
protected
__construct(mixed $config) : mixed
Parameters
- $config : mixed