Completed
Push — master ( 1f0b5b...72c149 )
by Jeroen
06:29 queued 14s
created

PasswordRestrictions::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Kunstmaan\AdminBundle\Validator\Constraints;
4
5
use Symfony\Component\Validator\Constraint;
6
7
/**
8
 * Class PasswordRestrictions
9
 */
10
class PasswordRestrictions extends Constraint
11
{
12
    public const INVALID_MIN_DIGITS_ERROR = 'af8b48ce-be95-4149-8ab8-f0770536c414';
13
    public const INVALID_MIN_UPPERCASE_ERROR = '00939a50-4d1c-4cdc-8361-8a5c28ad9c54';
14
    public const INVALID_MIN_SPECIAL_CHARACTERS_ERROR = '9e905eb6-0ece-4238-8ce9-1eb937280737';
15
    public const INVALID_MIN_LENGTH_ERROR = '61c8ff3a-027b-449f-ad2d-2c8a3590d778';
16
    public const INVALID_MAX_LENGTH_ERROR = '4203e839-0e15-4d9a-be26-68adbdc75614';
17
18
    public const MESSAGE_MIN_DIGITS = 'errors.password.mindigits';
19
    public const MESSAGE_MIN_UPPERCASE = 'errors.password.minuppercase';
20
    public const MESSAGE_MIN_SPECIAL_CHARACTERS = 'errors.password.minspecialcharacters';
21
    public const MESSAGE_MIN_LENGTH = 'errors.password.minlength';
22
    public const MESSAGE_MAX_LENGTH = 'errors.password.maxlength';
23
}
24