You are here

public function ValidatorInterface::validatePropertyValue in Plug 7

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

Validate a property of a value against a potential 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:

string $value The value to validate against the: constraints of the property.

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::validatePropertyValue()
Validator::validatePropertyValue in lib/Symfony/validator/Symfony/Component/Validator/Validator.php

File

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

Class

ValidatorInterface
Validates values and graphs of objects and arrays.

Namespace

Symfony\Component\Validator

Code

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