platform/api/symfony/Component/Validator/Constraints/TimeValidator.yaml

40 lines
1.3 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
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: []