<?php

namespace App\Modules\HtlCamp\Application;

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

class HtlCampDeleter {

    private HtlCampRepository $repository;

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

    public function __invoke (IdHtlCamp $id) {
        return $this->repository->delete($id);
    }
}