Copied!

A helper providing autocompletion for available Serializer options.

CloneableFinalInstantiable
Methods
public toArray() : array
 
  • return array<string,mixed>
public withCollectDenormalizationErrors(?bool $collectDenormalizationErrors) : static
public withContext(Symfony\Component\Serializer\Context\ContextBuilderInterface|array $context) : static
public withEmptyArrayAsObject(?bool $emptyArrayAsObject) : static
 

Configures whether an empty array should be transformed to an
object (in JSON: {}) or to a list (in JSON: []).

Methods
protected with(string $key, ?mixed $value) : static
Properties
private array $context
 
  • var array<string,mixed>
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration