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