if (empty($json)) { return $this->variantFacet = null;
} /** @var array<class-string<VariantFacet>, array{label: string, depth: string}> $arr */
$arr =
json_decode($json, true
);
if (empty($arr)) { return $this->variantFacet = null;
} $variantFacet =
$this->reflectionHelper->
createInstanceFromNamedArguments(key($arr),
reset($arr));
$this->variantFacet =
$variantFacet;
return $this->variantFacet;
} /**
* @throws RuntimeException
* @throws InvalidArgumentException
*/
public function joinPrices(QueryBuilder
$query, ShopContextInterface
$context, Criteria
$criteria) {