<?php

namespace App\Modules\HtlUsagePassenger\Application;

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

class HtlUsagePassengerFinder {

    private HtlUsagePassengerRepository $repository;

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

    public function __invoke (HUIdHtlRoom $idHtlRoom, $action, $query) {
        return $this->repository->find($idHtlRoom, $action, $query);
    }
}