RecaptchaV2ProxylessTask   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 26
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
/**
6
 * @see https://anti-captcha.com/apidoc/task-types/RecaptchaV2TaskProxyless
7
 */
8
class RecaptchaV2ProxylessTask extends AbstractTask
9
{
10
    /*
11
     * Address of a target web page. Can be located anywhere on the web site, even in a member area. Our workers don't
12
     * navigate there but simulate the visit instead.
13
     */
14
    public string $websiteURL;
15
16
    /*
17
     * Recaptcha website key.
18
     */
19
    public string $websiteKey;
20
21
    /*
22
     * Value of 'data-s' parameter. Applies only to Recaptchas on Google web sites.
23
     */
24
    public ?string $recaptchaDataSValue = null;
25
26
    /*
27
     * Specify whether or not Recaptcha is invisible. This will render an appropriate widget for our workers.
28
     */
29
    public ?bool $isInvisible = null;
30
31
    public function getType(): string
32
    {
33
        return 'RecaptchaV2TaskProxyless';
34
    }
35
}
36