| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanedev\Stripe\Exceptions; |
||
| 26 | 10 | public function __construct( |
|
| 27 | $message, |
||
| 28 | $code = 500, |
||
| 29 | $type = 'api_error', |
||
| 30 | $stripeCode = null, |
||
| 31 | $httpBody = null, |
||
| 32 | $jsonBody = [], |
||
| 33 | $params = [] |
||
| 34 | ) { |
||
| 35 | $message = 'No API key provided. (HINT: set your API key using ' |
||
| 36 | . '"Stripe::setApiKey(<API-KEY>)". You can generate API keys from ' |
||
| 37 | 8 | . 'the Stripe web interface. See https://stripe.com/api for ' |
|
| 38 | 10 | . 'details, or email [email protected] if you have any questions.'; |
|
| 39 | |||
| 40 | 10 | parent::__construct($message, $code, $type); |
|
| 41 | 10 | } |
|
| 42 | } |
||
| 43 |