Ejemplo n.º 1
0
 /**
  * @param int $day
  * @param Listing $listing
  * @return mixed
  * @throws \DibiException
  * @throws DayExceedCurrentMonthException
  * @throws ListingItemNotFoundException
  */
 public function shiftCopyOfListingItemDown($day, Listing $listing)
 {
     // we do NOT want to shift the last item
     if ($day >= $listing->getNumberOfDaysInMonth()) {
         throw new DayExceedCurrentMonthException();
     }
     return $this->listingItemRepository->shiftCopyOfListingItemDown($day, $listing->listingID);
 }
Ejemplo n.º 2
0
 /**
  * @param array $listingItems
  */
 private function persistListingItems(array $listingItems)
 {
     $this->listingItemRepository->saveListingItems($listingItems);
 }