RecaptchaV2ProxylessTask::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
/**
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