flash.moe/lib/fmlanguage.php
2020-07-30 00:55:37 +00:00

14 lines
368 B
PHP

<?php
class FmLanguage {
private $language_id = -1;
private $language_name = '';
private $language_colour = null;
public static function fromStdClass(stdClass $lang) {
$langRaw = (array)$lang;
$lang = new static;
foreach($langRaw as $prop => $val)
$lang->{$prop} = $val;
return $lang;
}
}