Completed
Push — master ( 976833...167b67 )
by Artem
02:47
created

PasswordMeetSpecialRequirements::getTargets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of the StfalconApiBundle.
4
 *
5
 * (c) Stfalcon LLC <stfalcon.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace StfalconStudio\ApiBundle\Validator\Constraints\Password;
14
15
use Symfony\Component\Validator\Constraint;
16
17
/**
18
 * PasswordMeetSpecialRequirements.
19
 *
20
 * @Annotation
21
 */
22
class PasswordMeetSpecialRequirements extends Constraint
23
{
24
    public const PASSWORD_DOES_NOT_MEET_SPECIAL_REQUIREMENTS = 'PASSWORD_DOES_NOT_MEET_SPECIAL_REQUIREMENTS';
25
26
    /** @var string[] */
27
    protected static $errorNames = [
28
        self::PASSWORD_DOES_NOT_MEET_SPECIAL_REQUIREMENTS => self::PASSWORD_DOES_NOT_MEET_SPECIAL_REQUIREMENTS,
29
    ];
30
31
    /** @var string */
32
    public $message = 'password_does_not_meet_special_requirements';
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getTargets(): string
38
    {
39
        return self::PROPERTY_CONSTRAINT;
40
    }
41
}
42