Переезд функции repexp; Переезд классов User в неймспейс.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace User;
|
||||
|
||||
use Core\Db;
|
||||
|
||||
class StatsModel
|
||||
{
|
||||
public static function addRepexpById(int $id, int $val)
|
||||
{
|
||||
Db::sql('update stats set repexp = repexp + ? where id = ?', [$val, $id]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user