mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
8b01421be7
-Update Non Segment Constant Service Class -Create Non Standard Segment Constant Logic Class -Update Non Standard Segment Constant Logic Class -Delete Non Standard Segment Logic Class
22 lines
589 B
PHP
22 lines
589 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Segments\Services;
|
|
|
|
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
|
use App\Classes\Modules\Segments\DataTransferObjects\SegmentObject;
|
|
use App\Models\Segment;
|
|
|
|
class UpdatesSegment extends AbstractUpdateRecord
|
|
{
|
|
|
|
/**
|
|
* @param SegmentObject $object
|
|
* @return \Illuminate\Database\Eloquent\Model
|
|
* @throws \App\Classes\Exceptions\MalformedRequestException
|
|
*/
|
|
public function execute(Segment $model, SegmentObject $object)
|
|
{
|
|
$model->name = $object->getName();
|
|
return $this->handler($model);
|
|
}
|
|
} |