| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class FacetingAttribute 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 mixed $value |
||
| 37 | * @param array $attributesForFaceting |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 3 | public static function exist(string $key, $value, array $attributesForFaceting): array |
|
| 52 |