<?php

namespace App\Modules\ModuleNotification\Application;

use App\Modules\ModuleNotification\Domain\ModuleNotificationRepository;
use App\Modules\ModuleNotification\Domain\IdModuleNotification;

class ModuleNotificationDeleter
{

    private ModuleNotificationRepository $repository;

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

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