\Vegas\Http\ResponseJson

Class Json

Summary

Methods
Properties
Constants
success()
fail()
setMessage()
setData()
jsonSerialize()
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() : $this

Determines if request was succeed

Returns

$this

fail()

fail() : $this

Determines if request was failed

Returns

$this

setMessage()

setMessage( $message) : $this

Sets request response message

Parameters

$message

Returns

$this

setData()

setData( $data) : $this

Sets request data

Parameters

$data

Returns

$this

jsonSerialize()

jsonSerialize() : array|mixed

Serializes array to JSON format

Returns

array|mixed