<?php

namespace App\Services\Expenses;

use App\Models\Expense;

class ExpenseStatusService
{
    public function updateStatus(Expense $expense, string $status, string $reason, int $userId): Expense
    {
        $expense->status = $status;
        $expense->status_reason = $reason;
        $expense->approved_by = $userId;
        $expense->updated_by = $userId;
        $expense->save();

        return $expense;
    }
}
