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