NoCaptchaProxyless::setWebsiteURL()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace LaravelAnticaptcha\Anticaptcha;
3
4
class NoCaptchaProxyless extends Anticaptcha implements AntiCaptchaTaskProtocol {
5
6
    private $websiteUrl;
7
    private $websiteKey;
8
    private $websiteSToken;
9
    
10
    public function getPostData() {
11
        return array(
12
            "type"          =>  "NoCaptchaTaskProxyless",
13
            "websiteURL"    =>  $this->websiteUrl,
14
            "websiteKey"    =>  $this->websiteKey,
15
            "websiteSToken" =>  $this->websiteSToken
16
        );
17
    }
18
    
19
    public function getTaskSolution() {
20
        return $this->taskInfo->solution->gRecaptchaResponse;
21
    }
22
    
23
    public function setWebsiteURL($value) {
24
        $this->websiteUrl = $value;
25
    }
26
    
27
    public function setWebsiteKey($value) {
28
        $this->websiteKey = $value;
29
    }
30
    
31
    public function setWebsiteSToken($value) {
32
        $this->websiteSToken = $value;
33
    }
34
    
35
}
36