Total Complexity | 1 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class MaskStringFormatter implements Formatter |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | public string $character = '*'; |
||
17 | |||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | public int $index = 4; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | public int $length = -4; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | public string $encoding = 'UTF-8'; |
||
32 | |||
33 | /** |
||
34 | * Format email as masked. |
||
35 | * |
||
36 | * @param Collection $items |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | 1 | public function format(Collection $items): string |
|
51 |