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()

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

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

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

File

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

Class

ValidatorInterface
Validates PHP values against constraints.

Namespace

Symfony\Component\Validator\Validator

Code

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