1 | <?php |
||
12 | abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest |
||
13 | { |
||
14 | /** |
||
15 | * @return string |
||
16 | */ |
||
17 | abstract function getEndpoint(); |
||
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | 3 | public function getClientId() |
|
26 | |||
27 | /** |
||
28 | * @param string $value |
||
29 | */ |
||
30 | 5 | public function setClientId($value) |
|
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | 3 | public function getApiKey() |
|
42 | |||
43 | /** |
||
44 | * @param string $value |
||
45 | */ |
||
46 | 5 | public function setApiKey($value) |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 1 | public function getProxy() |
|
58 | |||
59 | /** |
||
60 | * @param string $value |
||
61 | */ |
||
62 | 5 | public function setProxy($value) |
|
66 | |||
67 | /** |
||
68 | * @return Threatmetrix |
||
69 | */ |
||
70 | 1 | public function getThreatmetrix() |
|
74 | |||
75 | /** |
||
76 | * @param Threatmetrix $value |
||
77 | */ |
||
78 | 1 | public function setThreatmetrix(Threatmetrix $value) |
|
82 | |||
83 | /** |
||
84 | * Base "getData" should be extended by other requests |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | 2 | public function getData() |
|
105 | |||
106 | /** |
||
107 | * @param mixed $data |
||
108 | * @return array |
||
109 | */ |
||
110 | 1 | public function sendData($data) |
|
123 | } |
||
124 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.