ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
25 use ilLanguage;
26 
27 class Group
28 {
30  protected ilLanguage $lng;
31 
32  public function __construct(Factory $data_factory, ilLanguage $lng)
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 }
hasSpecialChars()
Get the constraint that a password has special chars.
Definition: Group.php:73
A constraint encodes some resrtictions on values.
Definition: Constraint.php:31
hasUpperChars()
Get the constraint that a password has upper case chars.
Definition: Group.php:49
hasNumbers()
Get the constraint that a password has numbers.
Definition: Group.php:65
hasLowerChars()
Get the constraint that a password has lower case chars.
Definition: Group.php:57
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Group.php:21
hasMinLength(int $min_length)
Get the constraint that a password has a minimum length.
Definition: Group.php:41
__construct(Factory $data_factory, ilLanguage $lng)
Definition: Group.php:32