20 lines
359 B
PHP
Executable File
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;
|
|
}
|
|
}
|