API Documentation

Serializable

Automatically serializes an Arrayable implementation when JSON is requested.

Tags
see
SerializableContract

Table of Contents

Methods

arraySerialize()  : array<string|int, mixed>
Recursively serialize Arrayables
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>
toJson()  : string

Methods

arraySerialize()

Recursively serialize Arrayables

public arraySerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

toArray()

public abstract toArray() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

toJson()

public toJson([int $options = 0 ]) : string
Parameters
$options : int = 0
Return values
string

        
On this page

Search results