Info model to contain general error and return values.
More...
Info model to contain general error and return values.
Definition at line 29 of file Info.php.
Fossology\UI\Api\Models\Info::__construct |
( |
|
$code, |
|
|
|
$message, |
|
|
|
$type |
|
) |
| |
Error constructor.
- Parameters
-
integer | $code | |
string | $message | |
InfoType | $type | |
Definition at line 52 of file Info.php.
Fossology\UI\Api\Models\Info::getArray |
( |
| ) |
|
Get info as associative array
- Returns
- array
Definition at line 74 of file Info.php.
Fossology\UI\Api\Models\Info::getCode |
( |
| ) |
|
- Returns
- integer
Definition at line 86 of file Info.php.
Fossology\UI\Api\Models\Info::getJSON |
( |
| ) |
|
Get the info as JSON representation
- Returns
- string
Definition at line 65 of file Info.php.
Fossology\UI\Api\Models\Info::getMessage |
( |
| ) |
|
- Returns
- string
Definition at line 94 of file Info.php.
Fossology\UI\Api\Models\Info::getType |
( |
| ) |
|
integer Fossology\UI\Api\Models\Info::$code |
|
private |
HTTP response code
Definition at line 35 of file Info.php.
string Fossology\UI\Api\Models\Info::$message |
|
private |
Reponse message
Definition at line 40 of file Info.php.
InfoType Fossology\UI\Api\Models\Info::$type |
|
private |
Response type
Definition at line 45 of file Info.php.
The documentation for this class was generated from the following file: