/**
* Hydrates the data result of the cheapest price query.
* This function uses the normally hydrate function of this class
* and adds additionally the product unit information to the price.
*
* @return PriceRule
*/
public function hydrateCheapestPrice(array
$data) { $price =
$this->
hydratePriceRule($data);
$translation =
$this->productHydrator->
getProductTranslation($data);
$data =
array_merge($data,
$translation);
$unit =
$this->unitHydrator->
hydrate($data);
$price->
setUnit($unit);
return $price;
} /**
* @param array $data
*
* @return PriceGroup
*/