RetailCRM API Client

EntityStrategy extends AbstractEncodeStrategy

Class EntityStrategy

Tags
category

EntityStrategy

Table of Contents

Methods

__construct()  : mixed
AbstractEncodeStrategy constructor.
encode()  : array<string|int, mixed>|string|null
setInnerType()  : EncodeStrategyInterface
Sets inner type for types like array<key, value> and \DateTime<format>

Methods

__construct()

AbstractEncodeStrategy constructor.

public __construct(Reader $annotationReader, SerializerInterface $liipSerializer) : mixed
Parameters
$annotationReader : Reader
$liipSerializer : SerializerInterface

encode()

public encode(mixed $value[, PropertyAnnotations|null $annotations = null ]) : array<string|int, mixed>|string|null
Parameters
$value : mixed
$annotations : PropertyAnnotations|null = null
Tags
inheritDoc
throws
ReflectionException
Return values
array<string|int, mixed>|string|null

setInnerType()

Sets inner type for types like array<key, value> and \DateTime<format>

public setInnerType(string $type) : EncodeStrategyInterface
Parameters
$type : string
Return values
EncodeStrategyInterface

        
On this page

Search results