mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
28 lines
923 B
PHP
28 lines
923 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\ContainerPackingLists\Services;
|
|
|
|
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
|
use App\Classes\Modules\ContainerPackingLists\DataTransferObjects\ContainerPackingListObject;
|
|
use App\Models\ContainerPackingList;
|
|
|
|
class CreatesContainerPackingList extends AbstractUpdateRecord
|
|
{
|
|
|
|
/**
|
|
* @param ContainerPackingListObject $object
|
|
* @return \Illuminate\Database\Eloquent\Model
|
|
* @throws \App\Classes\Exceptions\MalformedRequestException
|
|
*/
|
|
public function execute(ContainerPackingListObject $object) {
|
|
$model = new ContainerPackingList();
|
|
|
|
$model->packing_list_id = $object->getPackingListId();
|
|
$model->container_reference = $object->getContainerReference();
|
|
$model->container_type = $object->getContainerType();
|
|
$model->seal_reference = $object->getSealReference();
|
|
|
|
return $this->handler($model);
|
|
}
|
|
}
|