ArraySupportDecorator
in package
implements
SerializerInterface
Class ArraySupportDecorator
Tags
Table of Contents
Interfaces
- SerializerInterface
Methods
- __construct() : mixed
- ArraySupportDecorator constructor.
- deserialize() : mixed
- fromArray() : array<int|string, mixed>|object
- serialize() : string
- toArray() : array<int|string, mixed>
Methods
__construct()
ArraySupportDecorator constructor.
public
__construct(SerializerInterface $serializer) : mixed
Parameters
- $serializer : SerializerInterface
deserialize()
public
deserialize(string $data, string $type, string $format[, Context|null $context = null ]) : mixed
Parameters
- $data : string
- $type : string
- $format : string
- $context : Context|null = null
Tags
fromArray()
public
fromArray(array<int|string, mixed> $data, string $type[, Context|null $context = null ]) : array<int|string, mixed>|object
Parameters
- $data : array<int|string, mixed>
- $type : string
- $context : Context|null = null
Tags
Return values
array<int|string, mixed>|objectserialize()
public
serialize(mixed $data, string $format[, Context|null $context = null ]) : string
Parameters
- $data : mixed
- $format : string
- $context : Context|null = null
Tags
Return values
stringtoArray()
public
toArray(mixed $data[, Context|null $context = null ]) : array<int|string, mixed>
Parameters
- $data : mixed
- $context : Context|null = null