src/Offer/OfferCommandHandler.php
public function handleUpdateBookingInfo(AbstractUpdateBookingInfo $updateBookingInfo)
    {
        $offer = $this->load($updateBookingInfo->getItemId());

        $offer->updateBookingInfo(
            $updateBookingInfo->getBookingInfo()
        );

        $this->offerRepository->save($offer);
    }
public function handleUpdateBookingInfo(AbstractUpdateBookingInfo $updateBookingInfo)
    {
        $offer = $this->load($updateBookingInfo->getItemId());

        $offer->updateBookingInfo(
            $updateBookingInfo->getBookingInfo()
        );

        $this->offerRepository->save($offer);
    }
public function handleUpdateBookingInfo ( AbstractUpdateBookingInfo $ updateBookingInfo ) { $ offer = $ this -> load ( $ updateBookingInfo -> getItemId ( ) ) ; $ offer -> updateBookingInfo ( $ updateBookingInfo -> getBookingInfo ( ) ) ; $ this -> offerRepository -> save ( $ offer ) ; }
Handle an update command to updated the booking info.
@param AbstractUpdateBookingInfo $updateBookingInfo
Handle an update command to updated the booking info .