<?php

namespace App\Modules\HR\Employees\Repositories;

use App\Modules\HR\Employees\Models\EmployeeAddress;

class EmployeeAddressRepository
{
    /**
     * @param  array<string, string|null>  $data
     */
    public function syncForEmployee(int $employeeId, array $data): void
    {
        EmployeeAddress::query()->updateOrCreate(
            ['employee_id' => $employeeId],
            $data,
        );
    }
}
