Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait HasKeysTrait |
||
13 | { |
||
14 | /** |
||
15 | * @return mixed |
||
16 | */ |
||
17 | public function getPublicKey() |
||
18 | { |
||
19 | return $this->getParameter('publicKey'); |
||
|
|||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param $value |
||
24 | * @return CommonAbstractRequest |
||
25 | */ |
||
26 | public function setPublicKey($value) |
||
27 | { |
||
28 | return $this->setParameter('publicKey', $value); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Get the gateway API Key (the "secret key"). |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getApiKey(): string |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Set the gateway API Key. |
||
43 | * |
||
44 | * @return AbstractRequest provides a fluent interface. |
||
45 | */ |
||
46 | public function setApiKey($value): AbstractRequest |
||
49 | } |
||
50 | } |
||
51 |