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

Parameters

string $message
mixed $data
bool $success
int $code

at line line 67
abstract string toString()

toString

Return Value

string

at line line 74
string __toString()

__toString

Return Value

string

at line line 93
abstract string getMimeType()

getMimeType

Return Value

string

at line line 100
boolean getSuccess()

Method to get property Success

Return Value

boolean

at line line 112
AbstractBuffer setSuccess(boolean $success)

Method to set property success

Parameters

boolean $success

Return Value

AbstractBuffer Return self to support chaining.

at line line 124
string getMessage()

Method to get property Message

Return Value

string

at line line 136
AbstractBuffer setMessage(string $message)

Method to set property message

Parameters

string $message

Return Value

AbstractBuffer Return self to support chaining.

at line line 148
mixed getData()

Method to get property Data

Return Value

mixed

at line line 160
AbstractBuffer setData(mixed $data)

Method to set property data

Parameters

mixed $data

Return Value

AbstractBuffer Return self to support chaining.

at line line 172
int getCode()

Method to get property Code

Return Value

int

at line line 184
AbstractBuffer setCode(int $code)

Method to set property code

Parameters

int $code

Return Value

AbstractBuffer Return self to support chaining.