public function getQuotesFor(RentalQuery $query)
 {
     $quotes = [];
     foreach ($query->getApplicableRates() as $rate) {
         $quotes[] = $this->buildQuote($query->getEquipment(), $rate, $query->getRentalPeriod());
     }
     return $quotes;
 }
 public function getQuotesFor(RentalQuery $query)
 {
     $rateQuote = new RateQuote($query->getEquipment());
     $dayCount = $query->getTotalDayCount();
     while ($dayCount > 0) {
         $rate = $this->getBestRateForDays($query->getApplicableRates(), $dayCount);
         $rateQuote->add(RateQuoteLineItem::make($rate, 1));
         $dayCount -= $rate->getUnitDays();
     }
     return [$rateQuote];
 }