battles/models/UserLogModel.php

22 lines
351 B
PHP

<?php
/**
* Author: lopiu
* Date: 05.07.2020
* Time: 22:38
*/
class UserLogModel
{
protected $DB;
public function __construct(int $user_id)
{
$this->DB = db::c()->query('SELECT * FROM users_logs WHERE user_id = ?i ORDER BY `id` ASC', $user_id);
}
public function getUserLog()
{
return $this->DB;
}
}