Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class Gateway extends AbstractGateway |
||
18 | { |
||
19 | use GatewayTrait; |
||
20 | use OverwriteServerCompletePurchaseTrait; |
||
21 | use HasFileLoader; |
||
22 | |||
23 | // ------------ REQUESTS ------------ // |
||
24 | /** |
||
25 | * @param array $parameters |
||
26 | * @return RequestInterface|null |
||
27 | */ |
||
28 | public function doPayT(array $parameters = []): RequestInterface |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | public function setSandbox($value) |
||
37 | { |
||
38 | return $this->setTestMode($value == 'yes'); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | */ |
||
44 | public function getSandbox() |
||
45 | { |
||
46 | return $this->getTestMode() === true ? 'yes' : 'no'; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function isActive() |
||
59 | } |
||
60 | |||
61 | } |
||
62 |