api/symfony/Component/Validator/Validation.yaml

68 lines
1.6 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: Validation
class_comment: null
dependencies:
- name: ValidationFailedException
type: class
source: Symfony\Component\Validator\Exception\ValidationFailedException
- name: ValidatorInterface
type: class
source: Symfony\Component\Validator\Validator\ValidatorInterface
properties: []
methods:
- name: createCallable
visibility: public
parameters:
- name: constraintOrValidator
default: 'null'
- name: '...$constraints'
comment: '# * Entry point for the Validator component.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# */
# final class Validation
# {
# /**
# * Creates a callable chain of constraints.'
- name: createIsValidCallable
visibility: public
parameters:
- name: constraintOrValidator
default: 'null'
- name: '...$constraints'
comment: '# * Creates a callable that returns true/false instead of throwing validation
exceptions.
# *
# * @return callable(mixed $value, ?ConstraintViolationListInterface &$violations
= null): bool'
- name: createValidator
visibility: public
parameters: []
comment: '# * Creates a new validator.
# *
# * If you want to configure the validator, use
# * {@link createValidatorBuilder()} instead.'
- name: createValidatorBuilder
visibility: public
parameters: []
comment: '# * Creates a configurable builder for validator objects.'
- name: __construct
visibility: private
parameters: []
comment: '# * This class cannot be instantiated.'
traits:
- Symfony\Component\Validator\Exception\ValidationFailedException
- Symfony\Component\Validator\Validator\ValidatorInterface
interfaces: []