<?php

namespace App\Classes\Modules\Schedules\Services;

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

class UpdatesScheduleStatus extends AbstractUpdateRecord
{

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

        $model->status = $status;

        return $this->handler($model);
    }
}
