You are here

public function ContextualValidatorInterface::validatePropertyValue in Plug 7

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

1 method overrides ContextualValidatorInterface::validatePropertyValue()
RecursiveContextualValidator::validatePropertyValue in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php
Validates a value against the constraints specified for an object's property.

File

lib/Symfony/validator/Symfony/Component/Validator/Validator/ContextualValidatorInterface.php, line 80

Class

ContextualValidatorInterface
A validator in a specific execution context.

Namespace

Symfony\Component\Validator\Validator

Code

public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null);