NoCaptchaProxyless   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setWebsiteURL() 0 2 1
A setWebsiteSToken() 0 2 1
A setWebsiteKey() 0 2 1
A getPostData() 0 6 1
A getTaskSolution() 0 2 1
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