JsonContent
in package
implements
Stringable, IHttpContent, JsonSerializable
Table of Contents
Interfaces
- Stringable
- IHttpContent
- JsonSerializable
Methods
- __construct() : mixed
- __toString() : string
- encode() : string
- fromEncoded() : JsonContent
- fromFile() : JsonContent
- fromRequest() : JsonContent
- getContent() : mixed
- jsonSerialize() : mixed
Methods
__construct()
public
__construct(mixed $content) : mixed
Parameters
- $content : mixed
__toString()
public
__toString() : string
Return values
stringencode()
public
encode() : string
Return values
stringfromEncoded()
public
static fromEncoded(Stream|string $encoded) : JsonContent
Parameters
- $encoded : Stream|string
Return values
JsonContentfromFile()
public
static fromFile(string $path) : JsonContent
Parameters
- $path : string
Return values
JsonContentfromRequest()
public
static fromRequest() : JsonContent
Return values
JsonContentgetContent()
public
getContent() : mixed
jsonSerialize()
public
jsonSerialize() : mixed