<?php

namespace App\Modules\Admin\Tenancy\Repositories;

use App\Modules\Admin\Tenancy\Models\SubscriptionTransaction;

class SubscriptionTransactionRepository
{
    public function create(array $data): SubscriptionTransaction
    {
        return SubscriptionTransaction::query()->create($data);
    }

    public function update(SubscriptionTransaction $row, array $data): SubscriptionTransaction
    {
        $row->update($data);

        return $row->fresh();
    }
}
