api/symfony/Component/Validator/Constraints/Language.yaml
2024-09-26 02:03:21 -07:00

44 lines
1.7 KiB
YAML

name: Language
class_comment: null
dependencies:
- name: Languages
type: class
source: Symfony\Component\Intl\Languages
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
- name: LogicException
type: class
source: Symfony\Component\Validator\Exception\LogicException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: options
default: 'null'
- name: message
default: 'null'
- name: alpha3
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
comment: "# * Validates that a value is a valid language Unicode language identifier.\n\
# *\n# * @see https://unicode.org/reports/tr35/#Unicode_language_identifier\n\
# *\n# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# #[\\Attribute(\\\
Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\n\
# class Language extends Constraint\n# {\n# public const NO_SUCH_LANGUAGE_ERROR\
\ = 'ee65fec4-9a20-4202-9f39-ca558cd7bdf7';\n# \n# protected const ERROR_NAMES\
\ = [\n# self::NO_SUCH_LANGUAGE_ERROR => 'NO_SUCH_LANGUAGE_ERROR',\n# ];\n# \n\
# public string $message = 'This value is not a valid language.';\n# public bool\
\ $alpha3 = false;\n# \n# /**\n# * @param array<string,mixed>|null $options\n\
# * @param bool|null $alpha3 Pass true to validate the language\
\ with three-letter code (ISO 639-2 (2T)) or false with two-letter code (ISO 639-1)\
\ (defaults to false)\n# * @param string[]|null $groups"
traits:
- Symfony\Component\Intl\Languages
- Symfony\Component\Validator\Constraint
- Symfony\Component\Validator\Exception\LogicException
interfaces: []