<?php

namespace App\Classes\Modules\Transports\Services;

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

class updatesTransportStatus extends AbstractUpdateRecord
{

    /**
     * @param Transport $model
     * @param int $status
     * @return \Illuminate\Database\Eloquent\Model
     * @throws \App\Classes\Exceptions\MalformedRequestException
     */
    public function execute(Transport $model, int $status) {

        $model->status = $status;

        return $this->handler($model);

    }
}
