<?php

namespace App\Modules\HtlUsage\Application;

use App\Modules\HtlCamp\Domain\IdHtlCamp;
use App\Modules\HtlUsage\Domain\HtlUsageRepository;
use App\Modules\HtlUsage\Domain\IdHtlUsage;

class HtlUsageCampFinder {

    private HtlUsageRepository $repository;

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

    public function __invoke (string $dateStart, string $dateEnd, IdHtlCamp $idHtlCamp, string $action) {
        return $this->repository->campFind($dateStart, $dateEnd, $idHtlCamp, $action);
    }
}