Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class CaptureOrderTransaction extends AbstractTransaction |
||
14 | { |
||
15 | protected const ATTRIBUTE_KEY_ORDER_ID = 'orderId'; |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | protected function getTransactionType(): string |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | protected function getTransactionCode(): string |
||
29 | { |
||
30 | return ApiConstants::TRANSACTION_CODE_CAPTURE; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return \Braintree\Result\Error|\Braintree\Result\Successful |
||
35 | */ |
||
36 | protected function doTransaction() |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return \Braintree\Result\Error|\Braintree\Result\Successful |
||
43 | */ |
||
44 | protected function capture() |
||
51 |