RecaptchaV3EnterpriseProxylessTask   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 39
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
1
<?php
2
3
namespace Anticaptcha\Task;
4
5
class RecaptchaV3EnterpriseProxylessTask extends AbstractTask
6
{
7
    /*
8
     * Address of a target web page. Can be located anywhere on the web site, even in a member area. Our workers don't
9
     * navigate there but simulate the visit instead.
10
     */
11
    public string $websiteURL;
12
13
    /*
14
     * Recaptcha website key.
15
     */
16
    public string $websiteKey;
17
18
    /*
19
     * Filters workers with a particular score. It can have one of the following values:
20
     * 0.3
21
     * 0.7
22
     * 0.9
23
     */
24
    public float $minScore;
25
26
    /*
27
     * Recaptcha's "action" value. Website owners use this parameter to define what users are doing on the page.
28
     * Example:
29
     * grecaptcha.execute('site_key', {action:'login_test'})
30
     */
31
    public ?string $pageAction = null;
32
33
    /*
34
     * Set this flag to "true" if you need this V3 solved with Enterprise API. Default value is "false" and Recaptcha
35
     * is solved with non-enterprise API. Can be determined by a javascript call like in the following example:
36
     * grecaptcha.enterprise.execute('site_key', {..})
37
     */
38
    public bool $isEnterprise = true;
39
40
41
    public function getType(): string
42
    {
43
        return 'RecaptchaV3TaskProxyless';
44
    }
45
}
46