ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Group.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class Group
27{
29 protected \ILIAS\Language\Language $lng;
30
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}
Builds data types.
Definition: Factory.php:36
ILIAS Language Language $lng
Definition: Group.php:29
__construct(Factory $data_factory, \ILIAS\Language\Language $lng)
Definition: Group.php:31
hasLowerChars()
Get the constraint that a password has lower case chars.
Definition: Group.php:56
hasNumbers()
Get the constraint that a password has numbers.
Definition: Group.php:64
hasMinLength(int $min_length)
Get the constraint that a password has a minimum length.
Definition: Group.php:40
hasUpperChars()
Get the constraint that a password has upper case chars.
Definition: Group.php:48
hasSpecialChars()
Get the constraint that a password has special chars.
Definition: Group.php:72
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.