You are here

public function ValidatorInterface::validateProperty in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/ValidatorInterface.php \Symfony\Component\Validator\ValidatorInterface::validateProperty()
  2. 7 lib/Symfony/validator/Symfony/Component/Validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface::validateProperty()

Validates a property of a value against its current value.

The accepted values depend on the {@link MetadataFactoryInterface} implementation.

@api

Parameters

mixed $containingValue The value containing the property.:

string $property The name of the property to validate.:

array|null $groups The validation groups to validate.:

Return value

ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded.

1 method overrides ValidatorInterface::validateProperty()
Validator::validateProperty in lib/Symfony/validator/Symfony/Component/Validator/Validator.php

File

lib/Symfony/validator/Symfony/Component/Validator/ValidatorInterface.php, line 63

Class

ValidatorInterface
Validates values and graphs of objects and arrays.

Namespace

Symfony\Component\Validator

Code

public function validateProperty($containingValue, $property, $groups = null);