ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Refinery\Password\HasNumbers Class Reference
+ Inheritance diagram for ILIAS\Refinery\Password\HasNumbers:
+ Collaboration diagram for ILIAS\Refinery\Password\HasNumbers:

Public Member Functions

 __construct (Data\Factory $data_factory, \ILIAS\Language\Language $lng)
 
- Public Member Functions inherited from ILIAS\Refinery\Constraint
 check ($value)
 Checks the provided value. More...
 
 accepts ($value)
 Tells if the provided value complies. More...
 
 problemWith ($value)
 Tells what the problem with the provided value is. More...
 
 applyTo (Result $result)
 Restricts a Result. More...
 
 withProblemBuilder (callable $builder)
 Get a constraint like this one with a builder for a custom error message. More...
 
- Public Member Functions inherited from ILIAS\Refinery\Transformation
 transform ($from)
 Perform the transformation. More...
 
 applyTo (Result $result)
 Perform the transformation and reify possible failures. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Detailed Description

Definition at line 26 of file HasNumbers.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Password\HasNumbers::__construct ( Data\Factory  $data_factory,
\ILIAS\Language\Language  $lng 
)

Definition at line 28 of file HasNumbers.php.

29 {
31 static function (Data\Password $value): bool {
32 return (bool) preg_match('/[0-9]/', $value->toString());
33 },
34 static function ($value): string {
35 return "Password must contain numbers.";
36 },
37 $data_factory,
38 $lng
39 );
40 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31

References $lng, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: