<?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 UpdatesDispatchDateTransport extends AbstractUpdateRecord
{

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

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