Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class ShopifyError extends RuntimeException { |
||
15 | |||
16 | /** |
||
17 | * Messages for codes with garbage response bodies. |
||
18 | * |
||
19 | * @see https://help.shopify.com/en/api/getting-started/response-status-codes |
||
20 | */ |
||
21 | const NO_DATA = [ |
||
22 | 400 => 'Bad Request', |
||
23 | 401 => 'Unauthorized', |
||
24 | 403 => 'Forbidden', |
||
25 | 423 => 'Locked', |
||
26 | 406 => 'Not Acceptable', |
||
27 | 500 => 'Internal Server Error', |
||
28 | 501 => 'Not Implemented', |
||
29 | 503 => 'Service Unavailable', |
||
30 | 504 => 'Gateway Timeout' |
||
31 | ]; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $curlInfo = []; |
||
37 | |||
38 | /** |
||
39 | * @param int $code |
||
40 | * @param string $message |
||
41 | * @param array $curlInfo |
||
42 | */ |
||
43 | public function __construct (int $code, string $message, array $curlInfo) { |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | public function getCurlInfo (): array { |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return bool |
||
57 | */ |
||
58 | final public function isCurl (): bool { |
||
60 | } |
||
61 | } |