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

51 lines
2.2 KiB
YAML

name: NotBlank
class_comment: null
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
- name: InvalidArgumentException
type: class
source: Symfony\Component\Validator\Exception\InvalidArgumentException
properties:
- name: normalizer
visibility: public
comment: "# * Validates that a value is not blank.\n# *\n# * @author Bernhard Schussek\
\ <bschussek@gmail.com>\n# * @author K\xE9vin Dunglas <dunglas@gmail.com>\n# */\n\
# #[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\\
Attribute::IS_REPEATABLE)]\n# class NotBlank extends Constraint\n# {\n# public\
\ const IS_BLANK_ERROR = 'c1051bb4-d103-4f74-8988-acbcafc7fdc3';\n# \n# protected\
\ const ERROR_NAMES = [\n# self::IS_BLANK_ERROR => 'IS_BLANK_ERROR',\n# ];\n#\
\ \n# public string $message = 'This value should not be blank.';\n# public bool\
\ $allowNull = false;\n# /** @var callable|null"
methods:
- name: __construct
visibility: public
parameters:
- name: options
default: 'null'
- name: message
default: 'null'
- name: allowNull
default: 'null'
- name: normalizer
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
comment: "# * Validates that a value is not blank.\n# *\n# * @author Bernhard Schussek\
\ <bschussek@gmail.com>\n# * @author K\xE9vin Dunglas <dunglas@gmail.com>\n# */\n\
# #[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\\
Attribute::IS_REPEATABLE)]\n# class NotBlank extends Constraint\n# {\n# public\
\ const IS_BLANK_ERROR = 'c1051bb4-d103-4f74-8988-acbcafc7fdc3';\n# \n# protected\
\ const ERROR_NAMES = [\n# self::IS_BLANK_ERROR => 'IS_BLANK_ERROR',\n# ];\n#\
\ \n# public string $message = 'This value should not be blank.';\n# public bool\
\ $allowNull = false;\n# /** @var callable|null */\n# public $normalizer;\n# \n\
# /**\n# * @param array<string,mixed>|null $options\n# * @param bool|null \
\ $allowNull Whether to allow null values (defaults to false)\n# *\
\ @param string[]|null $groups"
traits:
- Symfony\Component\Validator\Constraint
- Symfony\Component\Validator\Exception\InvalidArgumentException
interfaces: []