| Total Complexity | 4 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class HetrixtoolsServiceResponse |
||
| 6 | { |
||
| 7 | const RESPONSE_STATUS_SUCCESS = 'SUCCESS'; |
||
| 8 | const RESPONSE_STATUS_ERROR = 'ERROR'; |
||
| 9 | const BLACKLIST_CHECK_IN_PROGRESS = 'blacklist check in progress for this ipv4'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public $status; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | public $api_calls_left; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | public $blacklist_check_credits_left; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | public $blacklisted_count; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | public $blacklisted_on; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | public $links; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string |
||
| 43 | */ |
||
| 44 | public $error_message; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $response |
||
| 48 | * |
||
| 49 | * @throws \InvalidArgumentException |
||
| 50 | * |
||
| 51 | * @return HetrixtoolsServiceResponse $responseObject |
||
| 52 | */ |
||
| 53 | 5 | public static function fromJson($response) |
|
| 72 |