You are here

public function ValidatorInterface::validatePropertyValue in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/ValidatorInterface.php \Symfony\Component\Validator\ValidatorInterface::validatePropertyValue()
  2. 8 vendor/symfony/validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface::validatePropertyValue()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ValidatorInterface.php \Symfony\Component\Validator\ValidatorInterface::validatePropertyValue()

Validate a property of a value against a potential value.

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

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 vendor/symfony/validator/Validator.php

File

vendor/symfony/validator/ValidatorInterface.php, line 74

Class

ValidatorInterface
Validates values and graphs of objects and arrays.

Namespace

Symfony\Component\Validator

Code

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