Total Complexity | 3 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | final class CaptureAction implements ActionInterface, GatewayAwareInterface |
||
15 | { |
||
16 | use GatewayAwareTrait; |
||
17 | |||
18 | public function execute($request): void |
||
19 | { |
||
20 | RequestNotSupportedException::assertSupports($this, $request); |
||
21 | |||
22 | $this->gateway->execute(new Purchase($request->getModel())); |
||
23 | } |
||
24 | |||
25 | public function supports($request): bool |
||
28 | } |
||
29 | } |
||
30 |