Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
4 | class FunCaptchaProxyless extends Anticaptcha implements AntiCaptchaTaskProtocol { |
||
5 | |||
6 | private $websiteUrl; |
||
7 | private $jsSubdomain; |
||
8 | private $websitePublicKey; |
||
9 | |||
10 | public function getPostData() { |
||
11 | return array( |
||
12 | "type" => "FunCaptchaTaskProxyless", |
||
13 | "websiteURL" => $this->websiteUrl, |
||
14 | "funcaptchaApiJSSubdomain" => $this->jsSubdomain, |
||
15 | "websitePublicKey" => $this->websitePublicKey |
||
16 | ); |
||
17 | } |
||
18 | |||
19 | public function setTaskInfo($taskInfo) { |
||
20 | $this->taskInfo = $taskInfo; |
||
21 | } |
||
22 | |||
23 | public function getTaskSolution() { |
||
24 | return $this->taskInfo->solution->token; |
||
25 | } |
||
26 | |||
27 | public function setWebsiteURL($value) { |
||
29 | } |
||
30 | |||
31 | public function setJSSubdomain($value) { |
||
32 | $this->jsSubdomain = $value; |
||
33 | } |
||
34 | |||
35 | public function setWebsitePublicKey($value) { |
||
41 |