| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class AsanaError extends RuntimeException { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $curlInfo; |
||
| 23 | |||
| 24 | public function __construct (int $code, string $message, array $curlInfo) { |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function asResponse () { |
||
| 33 | return json_decode($this->getMessage(), true, JSON_BIGINT_AS_STRING | JSON_THROW_ON_ERROR); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getCurlInfo (): array { |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param int $code |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | final public function is (int $code): bool { |
||
| 49 | } |
||
| 50 | } |