ILIAS  release_8 Revision v8.24
Group.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
25use ilLanguage;
26
27class Group
28{
30 protected ilLanguage $lng;
31
33 {
34 $this->data_factory = $data_factory;
35 $this->lng = $lng;
36 }
37
41 public function hasMinLength(int $min_length): Constraint
42 {
43 return new HasMinLength($min_length, $this->data_factory, $this->lng);
44 }
45
49 public function hasUpperChars(): Constraint
50 {
51 return new HasUpperChars($this->data_factory, $this->lng);
52 }
53
57 public function hasLowerChars(): Constraint
58 {
59 return new HasLowerChars($this->data_factory, $this->lng);
60 }
61
65 public function hasNumbers(): Constraint
66 {
67 return new HasNumbers($this->data_factory, $this->lng);
68 }
69
73 public function hasSpecialChars(): Constraint
74 {
75 return new HasSpecialChars($this->data_factory, $this->lng);
76 }
77}
Builds data types.
Definition: Factory.php:21
hasLowerChars()
Get the constraint that a password has lower case chars.
Definition: Group.php:57
hasNumbers()
Get the constraint that a password has numbers.
Definition: Group.php:65
hasMinLength(int $min_length)
Get the constraint that a password has a minimum length.
Definition: Group.php:41
hasUpperChars()
Get the constraint that a password has upper case chars.
Definition: Group.php:49
__construct(Factory $data_factory, ilLanguage $lng)
Definition: Group.php:32
hasSpecialChars()
Get the constraint that a password has special chars.
Definition: Group.php:73
language handling
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Group.php:21