You are here

public function ContextualValidatorInterface::validateProperty in Plug 7

Validates a property of an object against the constraints specified for this property.

Parameters

object $object The object:

string $propertyName The name of the validated property:

array|null $groups The validation groups to validate. If: none is given, "Default" is assumed

Return value

ContextualValidatorInterface This validator

1 method overrides ContextualValidatorInterface::validateProperty()
RecursiveContextualValidator::validateProperty in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php
Validates a property of an object against the constraints specified for this property.

File

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

Class

ContextualValidatorInterface
A validator in a specific execution context.

Namespace

Symfony\Component\Validator\Validator

Code

public function validateProperty($object, $propertyName, $groups = null);