*/
class RecursiveValidator implements ValidatorInterface
{
- /**
- * @var ExecutionContextFactoryInterface
- */
protected $contextFactory;
-
- /**
- * @var MetadataFactoryInterface
- */
protected $metadataFactory;
-
- /**
- * @var ConstraintValidatorFactoryInterface
- */
protected $validatorFactory;
-
- /**
- * @var ObjectInitializerInterface[]
- */
protected $objectInitializers;
/**
public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null)
{
// If a class name is passed, take $value as root
- return $this->startContext(is_object($objectOrClass) ? $objectOrClass : $value)
+ return $this->startContext(\is_object($objectOrClass) ? $objectOrClass : $value)
->validatePropertyValue($objectOrClass, $propertyName, $value, $groups)
->getViolations();
}