Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
22 | final class UnretrievableAttribute implements SettingContract |
||
23 | { |
||
24 | /** |
||
25 | * @var string[] |
||
26 | */ |
||
27 | private static $unretrievableAttributesKeys = [ |
||
28 | '*password*', |
||
29 | '*token*', |
||
30 | '*secret*', |
||
31 | '*hash*', |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * Checks if the given key/value is a 'UnretrieableAttribute'. |
||
36 | * |
||
37 | * @param string $key |
||
38 | * @param array|null|string $value |
||
39 | * @param array $unretrievableAttributes |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 4 | public function getValue(string $key, $value, array $unretrievableAttributes): array |
|
52 |