\LiftKit\ResponseJson

JSON Response

Represents a response in JSON format.

Summary

Methods
Properties
Constants
__toString()
prepare()
render()
__construct()
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

__toString()

__toString() : string

__toString function.

Implicit conversion to string.

Returns

string

prepare()

prepare() : string

Prepares the Response to be sent.

Returns

string

render()

render() 

Renders processed output to stdout.

__construct()

__construct(mixed  $data, integer  $mode) 

Constructor

Parameters

mixed $data

element you'd like to encode

integer $mode

json_encode options constant