RecaptchaV3ProxylessTask::getType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Anticaptcha\Task;
4
5
class RecaptchaV3ProxylessTask 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 = null;
39
40
41
    public function getType(): string
42
    {
43
        return 'RecaptchaV3TaskProxyless';
44
    }
45
}
46