Interfaces, Classes and Traits
- ResponseFormatterInterface
Table of Contents
-
CONTENT_TYPE_JSON
= 'application/json; charset=UTF-8'
-
CONTENT_TYPE_JSONP
= 'application/javascript; charset=UTF-8'
-
$contentType
: string|null
-
$encodeOptions
: int
-
$prettyPrint
: bool
-
$useJsonP
: bool
-
__construct()
: mixed
-
format()
: mixed
-
formatJsonP()
: mixed
-
formatJson()
: mixed
CONTENT_TYPE_JSON
public
mixed
CONTENT_TYPE_JSON
= 'application/json; charset=UTF-8'
CONTENT_TYPE_JSONP
public
mixed
CONTENT_TYPE_JSONP
= 'application/javascript; charset=UTF-8'
$contentType
public
string|null
$contentType
$encodeOptions
public
int
$encodeOptions
= 320
$prettyPrint
public
bool
$prettyPrint
= false
$useJsonP
public
bool
$useJsonP
= false
__construct()
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
-
$options
: array<string|int, mixed>
= []
-
Return values
mixed
—
public
format(Response $response) : mixed
Parameters
-
$response
: Response
-
Return values
mixed
—
public
formatJsonP(Response $response) : mixed
Parameters
-
$response
: Response
-
Return values
mixed
—
private
formatJson(Response $response) : mixed
Parameters
-
$response
: Response
-
Return values
mixed
—