platform/api/symfony/Component/Validator/Constraints/PasswordStrength.yaml
2024-09-02 10:44:11 -07:00

42 lines
1.8 KiB
YAML

name: PasswordStrength
class_comment: null
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
- name: ConstraintDefinitionException
type: class
source: Symfony\Component\Validator\Exception\ConstraintDefinitionException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: options
default: 'null'
- name: minScore
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
- name: message
default: 'null'
comment: "# * Validates that the given password has reached a minimum strength.\n\
# *\n# * @author Florent Morselli <florent.morselli@spomky-labs.com>\n# */\n#\
\ #[\\Attribute(\\Attribute::TARGET_PROPERTY | \\Attribute::TARGET_METHOD | \\\
Attribute::IS_REPEATABLE)]\n# final class PasswordStrength extends Constraint\n\
# {\n# public const STRENGTH_VERY_WEAK = 0;\n# public const STRENGTH_WEAK = 1;\n\
# public const STRENGTH_MEDIUM = 2;\n# public const STRENGTH_STRONG = 3;\n# public\
\ const STRENGTH_VERY_STRONG = 4;\n# \n# public const PASSWORD_STRENGTH_ERROR\
\ = '4234df00-45dd-49a4-b303-a75dbf8b10d8';\n# \n# protected const ERROR_NAMES\
\ = [\n# self::PASSWORD_STRENGTH_ERROR => 'PASSWORD_STRENGTH_ERROR',\n# ];\n#\
\ \n# public string $message = 'The password strength is too low. Please use a\
\ stronger password.';\n# \n# public int $minScore;\n# \n# /**\n# * @param array<string,mixed>|null\
\ $options\n# * @param self::STRENGTH_*|null $minScore The minimum required\
\ strength of the password (defaults to {@see PasswordStrength::STRENGTH_MEDIUM})\n\
# * @param string[]|null $groups"
traits:
- Symfony\Component\Validator\Constraint
- Symfony\Component\Validator\Exception\ConstraintDefinitionException
interfaces: []