ValidatorInterface
  • References/PHP/Symfony/Component/Validator/Validator

interface ValidatorInterface implements

2025-01-10 15:47:30
RecursiveValidator::hasMetadataFor()
  • References/PHP/Symfony/Component/Validator/Validator

bool hasMetadataFor($object) Returns whether the class is able to return metadata for the given

2025-01-10 15:47:30
ContextualValidatorInterface
  • References/PHP/Symfony/Component/Validator/Validator

interface ContextualValidatorInterface A validator in a specific execution context.

2025-01-10 15:47:30
ContextualValidatorInterface::getViolations()
  • References/PHP/Symfony/Component/Validator/Validator

Constrain

2025-01-10 15:47:30
RecursiveContextualValidator::atPath()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface atPath(string $path) Appends the given path to the property path of the context. If called multiple times, the path will always be reset to the context's original path with the given path appended to it. Parameters string $path The path to append Return Value ContextualValidatorInterface This validator

2025-01-10 15:47:30
ContextualValidatorInterface::validateProperty()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface validateProperty(object $object, string $propertyName, array|null $groups = null) Validates a property of an object against the constraints specified for this property. Parameters object $object The object string $propertyName The name of the validated property array|null $groups The validation groups to validate. If none is given, "Default" is assumed Return Value ContextualValidatorInterface This validator

2025-01-10 15:47:30
RecursiveContextualValidator::getViolations()
  • References/PHP/Symfony/Component/Validator/Validator

Constrain

2025-01-10 15:47:30
ContextualValidatorInterface::atPath()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface atPath(string $path) Appends the given path to the property path of the context. If called multiple times, the path will always be reset to the context's original path with the given path appended to it. Parameters string $path The path to append Return Value ContextualValidatorInterface This validator

2025-01-10 15:47:30
RecursiveValidator
  • References/PHP/Symfony/Component/Validator/Validator

class RecursiveValidator implements

2025-01-10 15:47:30
RecursiveValidator::inContext()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context Return Value ContextualValidatorInterface The validator for that context

2025-01-10 15:47:30