Skip to content

Commit 423de0c

Browse files
author
Babichev Maxim
committed
add refreshBalance
1 parent 031afdb commit 423de0c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Models/Wallet.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,18 @@ public function setNameAttribute(string $name): void
7474

7575
/**
7676
* @return bool
77+
* @deprecated
78+
* @see refreshBalance
7779
*/
7880
public function calculateBalance(): bool
81+
{
82+
return $this->refreshBalance();
83+
}
84+
85+
/**
86+
* @return bool
87+
*/
88+
public function refreshBalance(): bool
7989
{
8090
$balance = $this->getAvailableBalance();
8191
WalletProxy::set($this->getKey(), $balance);

0 commit comments

Comments
 (0)