RetailCRM API Client

ArraySupportDecorator implements SerializerInterface

Class ArraySupportDecorator

Tags
category

ArraySupportDecorator

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
inheritDoc

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
inheritDoc
Return values
array<int|string, mixed>|object

serialize()

public serialize(mixed $data, string $format[, Context|null $context = null ]) : string
Parameters
$data : mixed
$format : string
$context : Context|null = null
Tags
inheritDoc
throws
JsonException
Return values
string

toArray()

public toArray(mixed $data[, Context|null $context = null ]) : array<int|string, mixed>
Parameters
$data : mixed
$context : Context|null = null
Tags
inheritDoc
Return values
array<int|string, mixed>

        
On this page

Search results