Copied!

A helper providing autocompletion for available ConstraintViolationList options.

CloneableFinalInstantiable
Methods
public toArray() : array
 
  • return array<string,mixed>
public withContext(Symfony\Component\Serializer\Context\ContextBuilderInterface|array $context) : static
 
  • param \ContextBuilderInterface|array<string,mixed> $context
public withInstance(?mixed $instance) : static
 

Configure the instance field of normalized data.

public withPayloadFields(?array $payloadFields) : static
 

Configures the payload fields which will act as an allowlist for the payload field of normalized data.

Eg: ['foo', 'bar']

  • param list<string>|null $payloadFields
public withStatus(?int $status) : static
 

Configure the status field of normalized data.

public withTitle(?string $title) : static
 

Configure the title field of normalized data.

public withType(?string $type) : static
 

Configure the type field of normalized data.

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