57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: TimezoneValidator
|
|
class_comment: '# * Validates whether a value is a valid timezone identifier.
|
|
|
|
# *
|
|
|
|
# * @author Javier Spagnoletti <phansys@gmail.com>
|
|
|
|
# * @author Hugo Hamon <hugohamon@neuf.fr>'
|
|
dependencies:
|
|
- name: MissingResourceException
|
|
type: class
|
|
source: Symfony\Component\Intl\Exception\MissingResourceException
|
|
- name: Timezones
|
|
type: class
|
|
source: Symfony\Component\Intl\Timezones
|
|
- 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: validate
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: constraint
|
|
comment: null
|
|
- name: getPhpTimezones
|
|
visibility: private
|
|
parameters:
|
|
- name: zone
|
|
- name: countryCode
|
|
default: 'null'
|
|
comment: null
|
|
- name: getIntlTimezones
|
|
visibility: private
|
|
parameters:
|
|
- name: zone
|
|
- name: countryCode
|
|
default: 'null'
|
|
comment: null
|
|
traits:
|
|
- Symfony\Component\Intl\Exception\MissingResourceException
|
|
- Symfony\Component\Intl\Timezones
|
|
- Symfony\Component\Validator\Constraint
|
|
- Symfony\Component\Validator\ConstraintValidator
|
|
- Symfony\Component\Validator\Exception\UnexpectedTypeException
|
|
- Symfony\Component\Validator\Exception\UnexpectedValueException
|
|
interfaces: []
|