Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | class attributeForFaceting implements SettingContract |
||
20 | { |
||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private static $attributesForFacetingKeys = [ |
||
25 | '*category*', |
||
26 | '*list*', |
||
27 | '*country*', |
||
28 | '*city*', |
||
29 | '*type*', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * Checks if the given key/value is a 'attributesForFaceting'. |
||
34 | * |
||
35 | * @param string $key |
||
36 | * @param array|null|string $value |
||
37 | * @param array $attributesForFaceting |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | 3 | public function getValue(string $key, $value, array $attributesForFaceting): array |
|
50 |