ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
26 class Group
27 {
29  protected \ILIAS\Language\Language $lng;
30 
31  public function __construct(Factory $data_factory, \ILIAS\Language\Language $lng)
32  {
33  $this->data_factory = $data_factory;
34  $this->lng = $lng;
35  }
36 
40  public function hasMinLength(int $min_length): Constraint
41  {
42  return new HasMinLength($min_length, $this->data_factory, $this->lng);
43  }
44 
48  public function hasUpperChars(): Constraint
49  {
50  return new HasUpperChars($this->data_factory, $this->lng);
51  }
52 
56  public function hasLowerChars(): Constraint
57  {
58  return new HasLowerChars($this->data_factory, $this->lng);
59  }
60 
64  public function hasNumbers(): Constraint
65  {
66  return new HasNumbers($this->data_factory, $this->lng);
67  }
68 
72  public function hasSpecialChars(): Constraint
73  {
74  return new HasSpecialChars($this->data_factory, $this->lng);
75  }
76 }
Interface Observer Contains several chained tasks and infos about them.
hasNumbers()
Get the constraint that a password has numbers.
Definition: Group.php:64
hasLowerChars()
Get the constraint that a password has lower case chars.
Definition: Group.php:56
__construct(Factory $data_factory, \ILIAS\Language\Language $lng)
Definition: Group.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Builds data types.
Definition: Factory.php:35
hasUpperChars()
Get the constraint that a password has upper case chars.
Definition: Group.php:48
hasMinLength(int $min_length)
Get the constraint that a password has a minimum length.
Definition: Group.php:40
ILIAS Language Language $lng
Definition: Group.php:29
hasSpecialChars()
Get the constraint that a password has special chars.
Definition: Group.php:72