locations-bugs #17
@ -8,7 +8,7 @@
|
||||
class Bank
|
||||
{
|
||||
public $user_id;
|
||||
public $money;
|
||||
private $money;
|
||||
private $user;
|
||||
|
||||
const ERROR_NO_MONEY_IN_WALLET = "Ошибка! Нет денег в кошельке!";
|
||||
@ -204,8 +204,13 @@ class Bank
|
||||
db::c()->query('UPDATE users SET money = ?i WHERE `id` = ?i', $amount, $user_id);
|
||||
}
|
||||
|
||||
public function getBankMoney()
|
||||
public function getMoney()
|
||||
{
|
||||
return $this->money;
|
||||
}
|
||||
|
||||
public function setMoney($amount)
|
||||
{
|
||||
$this->money = $amount;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user