AbstractBuffer
class AbstractBuffer (View source)
The AbstractBuffer class.
Properties
boolean | $success | Determines whether the request was successful | |
string | $message | The main response message | |
int | $code | Property code. | |
mixed | $data | The response data |
Methods
__construct(string $message = null, mixed $data = null, bool $success = true, int $code = 200)
Constructor
string
toString()
toString
string
__toString()
__toString
string
getMimeType()
getMimeType
boolean
getSuccess()
Method to get property Success
setSuccess(boolean $success)
Method to set property success
string
getMessage()
Method to get property Message
setMessage(string $message)
Method to set property message
mixed
getData()
Method to get property Data
setData(mixed $data)
Method to set property data
int
getCode()
Method to get property Code
setCode(int $code)
Method to set property code
Details
at line line 54
__construct(string $message = null, mixed $data = null, bool $success = true, int $code = 200)
Constructor
at line line 67
abstract string
toString()
toString
at line line 74
string
__toString()
__toString
at line line 93
abstract string
getMimeType()
getMimeType
at line line 100
boolean
getSuccess()
Method to get property Success
at line line 112
AbstractBuffer
setSuccess(boolean $success)
Method to set property success
at line line 124
string
getMessage()
Method to get property Message
at line line 136
AbstractBuffer
setMessage(string $message)
Method to set property message
at line line 148
mixed
getData()
Method to get property Data
at line line 160
AbstractBuffer
setData(mixed $data)
Method to set property data
at line line 172
int
getCode()
Method to get property Code
at line line 184
AbstractBuffer
setCode(int $code)
Method to set property code