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

20 lines
359 B
PHP
Executable File

<?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;
}
}