platform/api/symfony/Component/Validator/Constraints/IpValidator.yaml
2024-09-02 10:44:11 -07:00

65 lines
1.5 KiB
YAML

name: IpValidator
class_comment: '# * Validates whether a value is a valid IP address.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# * @author Joseph Bielawski <stloyd@gmail.com>
# * @author Ninos Ego <me@ninosego.de>'
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: checkIp
visibility: public
parameters:
- name: ip
- name: version
comment: '# * Validates whether a value is a valid IP address.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# * @author Joseph Bielawski <stloyd@gmail.com>
# * @author Ninos Ego <me@ninosego.de>
# */
# class IpValidator extends ConstraintValidator
# {
# /**
# * Checks whether an IP address is valid.
# *
# * @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: []