Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class ErrorResponseException extends Exception implements ErrorResponseExceptionInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string The customer message. |
||
20 | */ |
||
21 | protected $customerMessage; |
||
22 | |||
23 | /** |
||
24 | * Constructs the exception from |
||
25 | * PAYONE API error information. |
||
26 | * |
||
27 | * @param int $code The PAYONE API error code. |
||
28 | * @param string $message The internal PAYONE API message. |
||
29 | * @param string $customerMessage The customer PAYONE API message. |
||
30 | */ |
||
31 | public function __construct(int $code, string $message, string $customerMessage) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | public function getCustomerMessage(): string |
||
45 |