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

34 lines
1.3 KiB
YAML

name: Hostname
class_comment: null
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: options
default: 'null'
- name: message
default: 'null'
- name: requireTld
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
comment: "# * Validates that a value is a valid host name.\n# *\n# * @author Dmitrii\
\ Poddubnyi <dpoddubny@gmail.com>\n# */\n# #[\\Attribute(\\Attribute::TARGET_PROPERTY\
\ | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\n# class Hostname\
\ extends Constraint\n# {\n# public const INVALID_HOSTNAME_ERROR = '7057ffdb-0af4-4f7e-bd5e-e9acfa6d7a2d';\n\
# \n# protected const ERROR_NAMES = [\n# self::INVALID_HOSTNAME_ERROR => 'INVALID_HOSTNAME_ERROR',\n\
# ];\n# \n# public string $message = 'This value is not a valid hostname.';\n\
# public bool $requireTld = true;\n# \n# /**\n# * @param array<string,mixed>|null\
\ $options\n# * @param bool|null $requireTld Whether to require\
\ the hostname to include its top-level domain (defaults to true)\n# * @param\
\ string[]|null $groups"
traits:
- Symfony\Component\Validator\Constraint
interfaces: []