GeeTestProxyless   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 40
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setChallenge() 0 2 1
A getPostData() 0 9 1
A setTaskInfo() 0 2 1
A setAPISubdomain() 0 2 1
A setGTKey() 0 2 1
A getTaskSolution() 0 2 1
A setWebsiteURL() 0 2 1
1
<?php
2
namespace LaravelAnticaptcha\Anticaptcha;
3
4
class GeeTestProxyless extends Anticaptcha implements AntiCaptchaTaskProtocol {
5
6
    private $websiteUrl;
7
    private $websiteKey;
8
    private $websiteChallenge;
9
    private $geetestApiServerSubdomain;
10
    
11
    public function getPostData() {
12
        $set = array(
13
            "type"                      =>  "GeeTestTaskProxyless",
14
            "websiteURL"                =>  $this->websiteUrl,
15
            "geetestApiServerSubdomain" =>  $this->geetestApiServerSubdomain,
16
            "gt"                        =>  $this->websiteKey,
17
            "challenge"                 =>  $this->websiteChallenge
18
        );
19
        return $set;
20
    }
21
    
22
    public function setTaskInfo($taskInfo) {
23
        $this->taskInfo = $taskInfo;
24
    }
25
    
26
    public function getTaskSolution() {
27
        return $this->taskInfo->solution;
28
    }
29
    
30
    public function setWebsiteURL($value) {
31
        $this->websiteUrl = $value;
32
    }
33
    
34
    public function setGTKey($value) {
35
        $this->websiteKey = $value;
36
    }
37
    
38
    public function setChallenge($value) {
39
        $this->websiteChallenge = $value;
40
    }
41
    
42
    public function setAPISubdomain($value) {
43
        $this->geetestApiServerSubdomain = $value;
44
    }
45
    
46
}
47