<?php

namespace App\Modules\BookingRelationship\Application;

use App\Modules\BookingRelationship\Domain\BookingRelationship;
use App\Modules\BookingRelationship\Domain\BookingRelationshipRepository;

class BookingRelationshipInserter {

    private BookingRelationshipRepository $repository;

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

    public function __invoke (BookingRelationship $bookingRelationship) {
        return $this->repository->insert($bookingRelationship);
    }
}