<?php

namespace App\Classes\Modules\Accounting\Services;

use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Models\StatementTransactionOwner;

class UpdatesBankStatementTransactionOwnerStatus extends AbstractUpdateRecord
{

    /**
     * @param StatementTransactionOwner $model
     * @param BankStatementDetailsObject $object
     * @return \Illuminate\Database\Eloquent\Model
     * @throws \App\Classes\Exceptions\MalformedRequestException
     */
    public function execute(StatementTransactionOwner $model, int $status)
    {
        $model->status = $status;
        return $this->handler($model);
    }
}
