Total Complexity | 8 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | class Gateway extends AbstractGateway |
||
16 | { |
||
17 | use GatewayTrait; |
||
18 | |||
19 | /** @noinspection PhpMissingParentCallCommonInspection |
||
20 | * @inheritdoc |
||
21 | * @return PurchaseRequest |
||
22 | */ |
||
23 | 1 | public function purchase(array $parameters = []): RequestInterface |
|
24 | { |
||
25 | 1 | $parameters['endpointUrl'] = $this->getEndpointUrl(); |
|
26 | |||
27 | 1 | return $this->createRequestWithInternalCheck('PurchaseRequest', $parameters); |
|
28 | } |
||
29 | |||
30 | /** @noinspection PhpMissingParentCallCommonInspection |
||
31 | * @inheritdoc |
||
32 | * @return CompletePurchaseRequest |
||
33 | */ |
||
34 | 3 | public function completePurchase(array $parameters = []): RequestInterface |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return bool |
||
44 | */ |
||
45 | 1 | public function isActive() |
|
59 |