\Evaluation\Http\Controllers\ApiApiController

Class ApiController

Summary

Methods
Properties
Constants
getStatusCode()
setStatusCode()
respondNotFound()
respondInternalError()
respond()
respondWithError()
No public properties found
No constants found
respondCreated()
$statusCode
N/A
No private methods found
No private properties found
N/A

Properties

$statusCode

$statusCode : integer

Type

integer

Methods

getStatusCode()

getStatusCode() : mixed

Returns

mixed

setStatusCode()

setStatusCode(mixed  $statusCode) : $this

Parameters

mixed $statusCode

Returns

$this

respondNotFound()

respondNotFound(string  $message = 'Not Found') : mixed

Parameters

string $message

Returns

mixed

respondInternalError()

respondInternalError(string  $message = 'Internal error') : mixed

Parameters

string $message

Returns

mixed

respond()

respond(  $data, array  $headers = array()) : mixed

Parameters

$data
array $headers

Returns

mixed

respondWithError()

respondWithError(  $message) : mixed

Parameters

$message

Returns

mixed

respondCreated()

respondCreated(  $message) : mixed

Parameters

$message

Returns

mixed