<?php
 namespace Modules\RemoteData\EntityManagementWs\Model; #[\AllowDynamicProperties] class Response extends \App\Utils\Webservice\Rest\ResponseAbstract { public $idEntity = 0; public function applyRuntimeException(\Exception $e) { $this->status = 'error'; $this->message = $e->getMessage(); if ($e instanceof \Modules\RemoteData\EntityManagementWs\Model\RuntimeException) { $this->errorCode = $e->getMessageCode(); } } } 