kamerk22 /
AmazonGiftCode
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * Part of the AmazonGiftCode package. |
||
| 5 | * Author: Kashyap Merai <[email protected]> |
||
| 6 | * |
||
| 7 | */ |
||
| 8 | |||
| 9 | |||
| 10 | namespace kamerk22\AmazonGiftCode\Exceptions; |
||
| 11 | |||
| 12 | |||
| 13 | use RuntimeException; |
||
| 14 | |||
| 15 | class AmazonErrors extends RuntimeException |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param string $message |
||
| 19 | * @param string $_error_code |
||
| 20 | * @return AmazonErrors |
||
| 21 | */ |
||
| 22 | public static function getError(string $message, string $_error_code): self |
||
| 23 | { |
||
| 24 | return new static($message, $_error_code); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 25 | } |
||
| 26 | |||
| 27 | } |