mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/tickme.git
synced 2026-08-28 08:54:09 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Projects\Services;
|
||||
|
||||
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
||||
use App\Classes\Modules\Projects\DataTransferObjects\ProjectObject;
|
||||
use App\Models\Project;
|
||||
|
||||
class UpdatesProject extends AbstractUpdateRecord
|
||||
{
|
||||
|
||||
public function execute(Project $model, ProjectObject $object) {
|
||||
|
||||
$model->type_id = $object->getTypeId();
|
||||
$model->client_id = $object->getClientId();
|
||||
$model->reference = $object->getReference();
|
||||
$model->description = $object->getDescription();
|
||||
$model->status = $object->getStatus();
|
||||
|
||||
return $this->handler($model);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user