FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\Info Class Reference

Info model to contain general error and return values. More...

Collaboration diagram for Fossology\UI\Api\Models\Info:
Collaboration graph

Public Member Functions

 __construct ($code, $message, $type)
 
 getJSON ()
 
 getArray ()
 
 getCode ()
 
 getMessage ()
 
 getType ()
 

Private Attributes

 $code
 
 $message
 
 $type
 

Detailed Description

Info model to contain general error and return values.

Definition at line 29 of file Info.php.

Constructor & Destructor Documentation

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.

Member Function Documentation

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 ( )
Returns
InfoType

Definition at line 102 of file Info.php.

Member Data Documentation

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: