ContextualValidatorInterface

ContextualValidatorInterface

interface ContextualValidatorInterface

A validator in a specific execution context.

Methods

$this atPath(string $path)

Appends the given path to the property path of the context.

$this validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null)

Validates a value against a constraint or a list of constraints.

$this validateProperty(object $object, string