| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanedev\Stripe\Exceptions; |
||
| 28 | 84 | public function __construct( |
|
| 29 | $message, |
||
| 30 | $code = 500, |
||
| 31 | $type = 'api_error', |
||
| 32 | $stripeCode = null, |
||
| 33 | $httpBody = null, |
||
| 34 | $jsonBody = [], |
||
| 35 | $params = [] |
||
| 36 | ) { |
||
| 37 | 84 | parent::__construct( |
|
| 38 | 68 | $message, |
|
| 39 | 68 | $code, |
|
| 40 | 68 | $type, |
|
| 41 | 68 | $stripeCode, |
|
| 42 | 68 | $httpBody, |
|
| 43 | 68 | $jsonBody, |
|
| 44 | $params |
||
| 45 | 68 | ); |
|
| 46 | 84 | } |
|
| 47 | } |
||
| 48 |