Documentation

RdbJsonObject extends JsonSerializable, JsonDeserializable

Implement this interface to create a JSON object that can be stored by Rdb.

This is a convenience interface that combines JsonSerializable and JsonDeserializable.

Use this for object drivers:

  • HashObjectDriver
  • JsonObjectDriver
  • MsgPackObjectDriver
Tags
see
Rdb::setObject()
Rdb::getObject()

Table of Contents

Methods

fromJson()  : static
Create an object from a JSON array.

Methods

fromJson()

Create an object from a JSON array.

public static fromJson(array<string|int, mixed> $json) : static
Parameters
$json : array<string|int, mixed>
Return values
static
On this page

Search results