class JsonEncoder extends JsonEncoder (View source)

internal  JSON:API maintains no PHP API. The API is the HTTP API. This class may change at any time and could break any dependencies on it.
 

Encodes JSON:API data.

Properties

static protected string $format

The formats that this Encoder supports.

Methods

__construct(JsonEncode $encodingImpl = NULL, JsonDecode $decodingImpl = NULL)

{@inheritdoc}

bool
supportsEncoding($format)

{@inheritdoc}

bool
supportsDecoding($format)

{@inheritdoc}

Details

__construct(JsonEncode $encodingImpl = NULL, JsonDecode $decodingImpl = NULL)

{@inheritdoc}

Parameters

JsonEncode $encodingImpl
JsonDecode $decodingImpl

bool supportsEncoding($format)

{@inheritdoc}

Parameters

$format

Return Value

bool

bool supportsDecoding($format)

{@inheritdoc}

Parameters

$format

Return Value

bool