TDeserialize
Table of Contents
-
deserialize()
: IDeserializable
-
deserializeArray()
: array<string|int, IDeserializable>
-
deserializeJson()
: IDeserializable
-
deserializeList()
: array<string|int, IDeserializable>
-
serialize()
: array<string|int, mixed>
-
serializeArray()
: array<string|int, mixed>
deserialize()
public
deserialize(array<string|int, mixed> $data, string $class) : IDeserializable
Parameters
-
$data
: array<string|int, mixed>
-
-
$class
: string
-
-
throws
-
InvalidItemException
Return values
IDeserializable
—
deserializeArray()
public
deserializeArray(array<string|int, mixed> $data, string $class[, bool $associative = false ]) : array<string|int, IDeserializable>
Parameters
-
$data
: array<string|int, mixed>
-
-
$class
: string
-
-
$associative
: bool
= false
-
Return values
array<string|int, IDeserializable>
—
deserializeJson()
public
deserializeJson(string $json, string $class) : IDeserializable
Parameters
-
$json
: string
-
-
$class
: string
-
-
throws
-
InvalidItemException
Return values
IDeserializable
—
deserializeList()
public
deserializeList(string $json, string $class) : array<string|int, IDeserializable>
Parameters
-
$json
: string
-
-
$class
: string
-
-
throws
-
InvalidItemException
Return values
array<string|int, IDeserializable>
—
serialize()
public
serialize(JsonSerializable $model) : array<string|int, mixed>
Parameters
-
$model
: JsonSerializable
-
Return values
array<string|int, mixed>
—
serializeArray()
public
serializeArray(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
-
$data
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—