ApiResult Class Reference

Public Member Functions

 __construct ($status, $data, $message=null, $errors=null)
 isStatusSuccess ()
 convertToArray ()

Data Fields

 $status
 $data = array()
 $message = null
 $errors = null

Detailed Description

ApiResult

Definition at line 40 of file ApiResult.php.


Constructor & Destructor Documentation

__construct ( status,
data,
message = null,
errors = null 
)

Constructor

Parameters:
string $status
array $data
string $message
array $errors

Definition at line 73 of file ApiResult.php.


Member Function Documentation

isStatusSuccess (  ) 

Is result status sucessful or not.

Returns:
boolean

Definition at line 85 of file ApiResult.php.

convertToArray (  ) 

Convert ApiResult object into array.

Returns:
array

Definition at line 101 of file ApiResult.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Sep 20 07:10:21 2017