36 lines
1.4 KiB
YAML
36 lines
1.4 KiB
YAML
|
name: Time
|
||
|
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'
|
||
|
- name: withSeconds
|
||
|
default: 'null'
|
||
|
comment: "# * Validates that a value is a valid time that follows the H:i:s format.\n\
|
||
|
# *\n# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# #[\\Attribute(\\\
|
||
|
Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\n\
|
||
|
# class Time extends Constraint\n# {\n# public const INVALID_FORMAT_ERROR = '9d27b2bb-f755-4fbf-b725-39b1edbdebdf';\n\
|
||
|
# public const INVALID_TIME_ERROR = '8532f9e1-84b2-4d67-8989-0818bc38533b';\n\
|
||
|
# \n# protected const ERROR_NAMES = [\n# self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',\n\
|
||
|
# self::INVALID_TIME_ERROR => 'INVALID_TIME_ERROR',\n# ];\n# \n# public bool $withSeconds\
|
||
|
\ = true;\n# public string $message = 'This value is not a valid time.';\n# \n\
|
||
|
# /**\n# * @param array<string,mixed>|null $options\n# * @param string[]|null\
|
||
|
\ $groups\n# * @param bool|null $withSeconds Whether\
|
||
|
\ to allow seconds in the given value (defaults to true)"
|
||
|
traits:
|
||
|
- Symfony\Component\Validator\Constraint
|
||
|
interfaces: []
|