CodeExplorer setPriceRules example
foreach ($numbers as $number) { if (!\
array_key_exists($number,
$products)) { continue;
} $product =
$products[$number];
if (isset($covers[$number])) { $product->
setCover($covers[$number]);
} if (isset($graduatedPrices[$number])) { $product->
setPriceRules($graduatedPrices[$number]);
} if (isset($cheapestPrices[$number])) { $product->
setCheapestPriceRule($cheapestPrices[$number]);
} if (isset($voteAverages[$number])) { $product->
setVoteAverage($voteAverages[$number]);
} if (isset($categories[$number])) {