<?php

namespace App\Classes\Modules\Transports\Services;

use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Classes\Modules\Transports\DataTransferObjects\TransportObject;
use App\Models\Transport;

class UpdatesDropDateTransport extends AbstractUpdateRecord
{

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

        $model->drop_date = $date;
        return $this->handler($model);
    }
}
