<?php

namespace App\Modules\ModuleNotificationParam\Application;

use App\Modules\ModuleNotificationParam\Domain\ModuleNotificationParamRepository;
use App\Modules\ModuleNotificationParam\Domain\IdModuleNotificationParam;

class ModuleNotificationParamIndexer {

    private ModuleNotificationParamRepository $repository;

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

    public function __invoke (IdModuleNotificationParam $idModuleNotificationParam) {
        return $this->repository->index($idModuleNotificationParam);
    }
}