Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class ValidNewPassword extends Constraint |
||
19 | { |
||
20 | /** @var IApplicationConfiguration */ |
||
21 | private $appConfig; |
||
22 | |||
23 | /** @var PasswordValidator */ |
||
24 | private $pwdValidator; |
||
25 | |||
26 | /** |
||
27 | * @internal |
||
28 | */ |
||
29 | public function __construct( |
||
30 | IApplicationConfiguration $appConfig, |
||
31 | PasswordValidator $pwdValidator |
||
32 | ) { |
||
33 | $this->appConfig = $appConfig; |
||
34 | $this->pwdValidator = $pwdValidator; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return IApplicationConfiguration The configuration of the application. |
||
39 | */ |
||
40 | public function getConfig(): IApplicationConfiguration |
||
41 | { |
||
42 | return $this->appConfig; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return PasswordValidator The PasswordValidator instance used for |
||
47 | * validating the password in ValidNewPasswordValidator. |
||
48 | * |
||
49 | * @see ValidNewPasswordValidator |
||
50 | */ |
||
51 | public function getPwdValidator(): PasswordValidator |
||
54 | } |
||
55 | } |
||
56 |