Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class PaymentDetails { |
||
21 | /** |
||
22 | * Create payment detailsfrom JSON. |
||
23 | * |
||
24 | * @link https://docs.mollie.com/reference/v2/payments-api/get-payment |
||
25 | * @param string $method Payment method. |
||
26 | * @param object|null $json JSON object. |
||
27 | * @return PaymentDetails|null |
||
28 | * @throws \JsonSchema\Exception\ValidationException Throws JSON schema validation exception when JSON is invalid. |
||
29 | */ |
||
30 | public static function from_json( $method, $json ) { |
||
54 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.