ResponseFactory
in package
Table of Contents
Methods
- make() : Response
- makeError() : Response
- makeErrorBadRequest() : Response
- makeErrorForbidden() : Response
- makeErrorNotFound() : Response
- makeErrorUnauthorised() : Response
- makeException() : Response
- makeSuccess() : Response
- makeSuccessNoContent() : Response
Methods
make()
public
make(mixed $data, Status $status) : Response
Parameters
- $data : mixed
- $status : Status
Return values
ResponsemakeError()
public
makeError([mixed $data = null ]) : Response
Parameters
- $data : mixed = null
Return values
ResponsemakeErrorBadRequest()
public
makeErrorBadRequest([mixed $data = null ]) : Response
Parameters
- $data : mixed = null
Return values
ResponsemakeErrorForbidden()
public
makeErrorForbidden([mixed $data = null ]) : Response
Parameters
- $data : mixed = null
Return values
ResponsemakeErrorNotFound()
public
makeErrorNotFound([mixed $data = null ]) : Response
Parameters
- $data : mixed = null
Return values
ResponsemakeErrorUnauthorised()
public
makeErrorUnauthorised([mixed $data = null ]) : Response
Parameters
- $data : mixed = null
Return values
ResponsemakeException()
public
makeException(Exception $e[, string|null $message = null ]) : Response
Parameters
- $e : Exception
- $message : string|null = null
Return values
ResponsemakeSuccess()
public
makeSuccess([mixed $data = null ]) : Response
Parameters
- $data : mixed = null
Return values
ResponsemakeSuccessNoContent()
public
makeSuccessNoContent() : Response