portal.mkgtu.ru/common/modules/student/models/Error.php

20 lines
359 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\modules\student\models;
class Error
{
public $code;
public $description;
public static function fromRaw($data): Error
{
$instance = new Error();
$instance->code = $data->Code ?? null;
$instance->description = $data->Description ?? null;
return $instance;
}
}