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