JsonResponse
final class JsonResponse implements IResponse
JSON response used mainly for AJAX requests.
Methods
__construct($payload, string $contentType = null)
No description
mixed
getPayload()
No description
string
getContentType()
Returns the MIME content type of a downloaded file.
Details
at line 29
__construct($payload, string $contentType = null)
No description
at line 39
mixed
getPayload()
No description
at line 48
string
getContentType()
Returns the MIME content type of a downloaded file.
Traits
Strict class for better experience.