<?php

namespace App\Modules\HtlUsagePassenger\Application;

use App\Modules\HtlUsagePassenger\Domain\HtlUsagePassenger;
use App\Modules\HtlUsagePassenger\Domain\HtlUsagePassengerRepository;
use App\Modules\HtlUsagePassenger\Domain\IdHtlUsagePassenger;

class HtlUsagePassengerInserter {

    private HtlUsagePassengerRepository $repository;

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

    public function __invoke (HtlUsagePassenger $htlRoom) {
        return $this->repository->insert($htlRoom);
    }
}