<?php

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

use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Models\Package;
use App\Models\PackingList;

class SwitchesPackagePackingList extends AbstractUpdateRecord
{

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

        $model->packing_list_id = $packing_list->id;

        return $this->handler($model);

    }
}
