1 | <?php |
||
16 | class Password implements FilterInterface |
||
17 | { |
||
18 | /** |
||
19 | * pattern for password |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | |||
24 | protected $_pattern = '[^\S]'; |
||
25 | |||
26 | /** |
||
27 | * sanitize the password |
||
28 | * |
||
29 | * @since 4.3.0 |
||
30 | * |
||
31 | * @param string $password plain password |
||
32 | * |
||
33 | * @return string|null |
||
34 | */ |
||
35 | |||
36 | 3 | public function sanitize(string $password = null) : ?string |
|
40 | } |
||
41 |