<?php

namespace App\Classes\Modules\PackingLists\Services;

use App\Classes\General\Interfaces\Packable;
use App\Classes\General\Eloquent\AbstractUpdateRelationshipRecord;
use App\Models\PackingList;
use App\Classes\ValueObjects\Constants\ApprovalStatus;

class UpdatesPackingListOwner extends AbstractUpdateRelationshipRecord
{

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

        return $this->handler($packable->packingLists(), $model);

    }
}
