locations-bugs #17

Merged
lopar merged 12 commits from locations-bugs into master 2020-10-28 20:25:45 +00:00
Showing only changes of commit ff1afa7a7a - Show all commits

View File

@ -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;
}
}