| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | abstract class GeneralV2Plugin extends GeneralPlugin |
||
| 12 | { |
||
| 13 | protected function getHeaders(): array |
||
| 14 | { |
||
| 15 | return [ |
||
| 16 | 'Content-Type' => 'application/xml', |
||
| 17 | 'User-Agent' => 'yansongda/pay-v3', |
||
| 18 | ]; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @throws \Yansongda\Pay\Exception\ContainerException |
||
| 23 | * @throws \Yansongda\Pay\Exception\ServiceNotFoundException |
||
| 24 | */ |
||
| 25 | protected function doSomething(Rocket $rocket): void |
||
| 35 | ]); |
||
| 36 | } |
||
| 37 | |||
| 38 | abstract protected function getUri(Rocket $rocket): string; |
||
| 39 | } |
||
| 40 |