\MineMineResponse

Class MineResponse

Summary

Methods
Properties
Constants
success()
error()
responseImage()
getResponse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

success()

success(string|null  $message = null,   $data = array(), integer  $code = 200) : \Psr\Http\Message\ResponseInterface

Parameters

string|null $message
$data
integer $code

Returns

\Psr\Http\Message\ResponseInterface

error()

error(string  $message = '', integer  $code = 500, array  $data = array()) : \Psr\Http\Message\ResponseInterface

Parameters

string $message
integer $code
array $data

Returns

\Psr\Http\Message\ResponseInterface

responseImage()

responseImage(string  $image, string  $type = 'image/png') : \Psr\Http\Message\ResponseInterface

向浏览器输出图片

Parameters

string $image
string $type

Returns

\Psr\Http\Message\ResponseInterface

getResponse()

getResponse()