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

44 lines
1.7 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: DateTime
class_comment: null
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: format
default: 'null'
- name: message
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
- name: options
default: '[]'
comment: "# * Validates that a value is a valid \"datetime\" according to a given\
\ 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 DateTime extends Constraint\n# {\n# public const INVALID_FORMAT_ERROR\
\ = '1a9da513-2640-4f84-9b6a-4d99dcddc628';\n# public const INVALID_DATE_ERROR\
\ = 'd52afa47-620d-4d99-9f08-f4d85b36e33c';\n# public const INVALID_TIME_ERROR\
\ = '5e797c9d-74f7-4098-baa3-94390c447b27';\n# \n# protected const ERROR_NAMES\
\ = [\n# self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n# self::INVALID_DATE_ERROR\
\ => 'INVALID_DATE_ERROR',\n# self::INVALID_TIME_ERROR => 'INVALID_TIME_ERROR',\n\
# ];\n# \n# public string $format = 'Y-m-d H:i:s';\n# public string $message =\
\ 'This value is not a valid datetime.';\n# \n# /**\n# * @param string|array<string,mixed>|null\
\ $format The datetime format to match (defaults to 'Y-m-d H:i:s')\n# * @param\
\ string[]|null $groups\n# * @param array<string,mixed> \
\ $options"
- name: getDefaultOption
visibility: public
parameters: []
comment: null
traits:
- Symfony\Component\Validator\Constraint
interfaces: []