<?php

namespace App\Modules\BookingReferredFrom\Application;

use App\Modules\BookingReferredFrom\Domain\BookingReferredFrom;
use App\Modules\BookingReferredFrom\Domain\BookingReferredFromRepository;

class BookingReferredFromUpdater {

    private BookingReferredFromRepository $repository;
    public function __construct(BookingReferredFromRepository $repository) {
        $this->repository = $repository;
    }

    public function __invoke (BookingReferredFrom $bookingReferredFrom) {
        return $this->repository->update($bookingReferredFrom);
    }
}