<?php

namespace App\Modules\HR\Compensation\Services;

use App\Modules\HR\Compensation\Repositories\CompensationRepository;

class CompensationService
{
    public function __construct(private readonly CompensationRepository $repository) {}

    public function createType(int $tenant, string $kind, array $data)
    {
        return $this->repository->createType($tenant, $kind, $data);
    }

    public function attach(int $tenant, int $employee, string $kind, array $data)
    {
        return $this->repository->attach($tenant, $kind, $data + ['employee_id' => $employee]);
    }
}
