* 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(); } }