Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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) { |
||
40 | } |
||
41 | |||
42 | public function setAPISubdomain($value) { |
||
44 | } |
||
45 | |||
46 | } |
||
47 |