<?php

namespace App\Classes\Modules\PackingLists\Services\Containers;

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

class UpdatesContainerStatus extends AbstractUpdateRecord
{

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

        $model->status = $status;

        return $this->handler($model);

    }
}
