28 lines
463 B
PHP
28 lines
463 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Copyright (c) 2018.
|
||
|
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
||
|
* Project name: Battles-Game
|
||
|
*/
|
||
|
|
||
|
class u
|
||
|
{
|
||
|
private $id;
|
||
|
|
||
|
/**
|
||
|
* u constructor.
|
||
|
* @param $playerId
|
||
|
*/
|
||
|
public function __construct($playerId)
|
||
|
{
|
||
|
$this->id = $playerId;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function i()
|
||
|
{
|
||
|
return db::c()->query('SELECT * FROM `users` WHERE `id` = ?i',$this->id)->fetch_assoc();
|
||
|
}
|
||
|
}
|