40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
|
name: CurrencyValidator
|
||
|
class_comment: '# * Validates whether a value is a valid currency.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @author Miha Vrhovnik <miha.vrhovnik@pagein.si>
|
||
|
|
||
|
# * @author Bernhard Schussek <bschussek@gmail.com>'
|
||
|
dependencies:
|
||
|
- name: Currencies
|
||
|
type: class
|
||
|
source: Symfony\Component\Intl\Currencies
|
||
|
- 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
|
||
|
traits:
|
||
|
- Symfony\Component\Intl\Currencies
|
||
|
- Symfony\Component\Validator\Constraint
|
||
|
- Symfony\Component\Validator\ConstraintValidator
|
||
|
- Symfony\Component\Validator\Exception\UnexpectedTypeException
|
||
|
- Symfony\Component\Validator\Exception\UnexpectedValueException
|
||
|
interfaces: []
|