<?php

namespace App\Modules\HtlUsage\Application;

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

class HtlUsageDeleter {

    private HtlUsageRepository $repository;

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

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