<?php

namespace App\Modules\AdminRole\Application;

use App\Modules\AdminRole\Domain\AdminRoleRepository;
use App\Modules\AdminRole\Domain\IdAdminRole;

class AdminRoleCopier {

    private AdminRoleRepository $repository;

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

    public function __invoke (IdAdminRole $idAdminRole) {
        return $this->repository->copy($idAdminRole);
    }
}