api/symfony/Component/Validator/Constraints/TimeValidator.yaml
2024-09-26 02:03:21 -07:00

39 lines
1.3 KiB
YAML

name: TimeValidator
class_comment: '# * @author Bernhard Schussek <bschussek@gmail.com>'
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
- name: ConstraintValidator
type: class
source: Symfony\Component\Validator\ConstraintValidator
- name: UnexpectedTypeException
type: class
source: Symfony\Component\Validator\Exception\UnexpectedTypeException
- name: UnexpectedValueException
type: class
source: Symfony\Component\Validator\Exception\UnexpectedValueException
properties: []
methods:
- name: checkTime
visibility: public
parameters:
- name: hour
- name: minute
- name: second
comment: "# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# class TimeValidator\
\ extends ConstraintValidator\n# {\n# public const PATTERN = '/^(\\d{2}):(\\d{2}):(\\\
d{2})$/';\n# public const PATTERN_WITHOUT_SECONDS = '/^(\\d{2}):(\\d{2})$/';\n\
# \n# /**\n# * Checks whether a time is valid.\n# *\n# * @internal"
- name: validate
visibility: public
parameters:
- name: value
- name: constraint
comment: null
traits:
- Symfony\Component\Validator\Constraint
- Symfony\Component\Validator\ConstraintValidator
- Symfony\Component\Validator\Exception\UnexpectedTypeException
- Symfony\Component\Validator\Exception\UnexpectedValueException
interfaces: []