ContextualValidatorInterface::validatePropertyValue()

ContextualValidatorInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null)

Validates a value against the constraints specified for an object's property.

Parameters

object|string $objectOrClass The object or its class name
string $propertyName The name of the property
mixed $value The value to validate against the property's constraints
array|null $groups The validation groups to validate. If none is given, "Default" is assumed

Return Value

ContextualValidatorInterface This validator
doc_Symfony
2016-10-28 06:12:13
Comments
Leave a Comment

Please login to continue.