<?php

namespace App\Modules\HtlCamp\Application;

use App\Modules\HtlCamp\Domain\HCHtlUsageDateUsage;
use App\Modules\HtlCamp\Domain\HtlCampRepository;
use App\Modules\HtlCamp\Domain\IdHtlCamp;

class HtlCampRoomFinder {

    private HtlCampRepository $repository;

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

    public function __invoke (IdHtlCamp $idCamp, HCHtlUsageDateUsage $dateUsage) {
        return $this->repository->findRoom($idCamp, $dateUsage);
    }
}