platform/api/symfony/Component/Validator/Constraints/Date.yaml

33 lines
1.3 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: Date
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: groups
default: 'null'
- name: payload
default: 'null'
comment: "# * Validates that a value is a valid date, i.e. its string representation\
\ follows the Y-m-d format.\n# *\n# * @see https://www.php.net/manual/en/datetime.format.php\n\
# *\n# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# #[\\Attribute(\\\
Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\n\
# class Date extends Constraint\n# {\n# public const INVALID_FORMAT_ERROR = '69819696-02ac-4a99-9ff0-14e127c4d1bc';\n\
# public const INVALID_DATE_ERROR = '3c184ce5-b31d-4de7-8b76-326da7b2be93';\n\
# \n# protected const ERROR_NAMES = [\n# self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n\
# self::INVALID_DATE_ERROR => 'INVALID_DATE_ERROR',\n# ];\n# \n# public string\
\ $message = 'This value is not a valid date.';\n# \n# /**\n# * @param array<string,mixed>|null\
\ $options\n# * @param string[]|null $groups"
traits:
- Symfony\Component\Validator\Constraint
interfaces: []