DateTimeStrategy
extends AbstractEncodeStrategy
in package
Class DateTimeStrategy
Tags
Table of Contents
Methods
- __construct() : mixed
- AbstractEncodeStrategy constructor.
- encode() : 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) : string|null
Parameters
- $value : mixed
- $annotations : PropertyAnnotations|null
Tags
Return values
string|nullsetInnerType()
Sets inner type for types like array<key, value> and \DateTime<format>
public
setInnerType(string $type) : EncodeStrategyInterface
Parameters
- $type : string