1818interface WalletFloat
1919{
2020 /**
21- * @param float|string $amount
22- *
2321 * @throws AmountInvalid
2422 * @throws LockProviderNotFoundException
2523 * @throws RecordsNotFoundException
2624 * @throws TransactionFailedException
2725 * @throws ExceptionInterface
2826 */
29- public function depositFloat ($ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction ;
27+ public function depositFloat (float | int | string $ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction ;
3028
3129 /**
32- * @param float|string $amount
33- *
3430 * @throws AmountInvalid
3531 * @throws BalanceIsEmpty
3632 * @throws InsufficientFunds
@@ -39,22 +35,22 @@ public function depositFloat($amount, ?array $meta = null, bool $confirmed = tru
3935 * @throws TransactionFailedException
4036 * @throws ExceptionInterface
4137 */
42- public function withdrawFloat ($ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction ;
38+ public function withdrawFloat (float | int | string $ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction ;
4339
4440 /**
45- * @param float|string $amount
46- *
4741 * @throws AmountInvalid
4842 * @throws LockProviderNotFoundException
4943 * @throws RecordsNotFoundException
5044 * @throws TransactionFailedException
5145 * @throws ExceptionInterface
5246 */
53- public function forceWithdrawFloat ($ amount , ?array $ meta = null , bool $ confirmed = true ): Transaction ;
47+ public function forceWithdrawFloat (
48+ float |int |string $ amount ,
49+ ?array $ meta = null ,
50+ bool $ confirmed = true
51+ ): Transaction ;
5452
5553 /**
56- * @param float|string $amount
57- *
5854 * @throws AmountInvalid
5955 * @throws BalanceIsEmpty
6056 * @throws InsufficientFunds
@@ -63,31 +59,35 @@ public function forceWithdrawFloat($amount, ?array $meta = null, bool $confirmed
6359 * @throws TransactionFailedException
6460 * @throws ExceptionInterface
6561 */
66- public function transferFloat (Wallet $ wallet , $ amount , ExtraDtoInterface |array |null $ meta = null ): Transfer ;
62+ public function transferFloat (
63+ Wallet $ wallet ,
64+ float |int |string $ amount ,
65+ ExtraDtoInterface |array |null $ meta = null
66+ ): Transfer ;
6767
68- /**
69- * @param float|string $amount
70- */
71- public function safeTransferFloat (Wallet $ wallet , $ amount , ExtraDtoInterface |array |null $ meta = null ): ?Transfer ;
68+ public function safeTransferFloat (
69+ Wallet $ wallet ,
70+ float |int |string $ amount ,
71+ ExtraDtoInterface |array |null $ meta = null
72+ ): ?Transfer ;
7273
7374 /**
74- * @param float|string $amount
75- *
7675 * @throws AmountInvalid
7776 * @throws LockProviderNotFoundException
7877 * @throws RecordsNotFoundException
7978 * @throws TransactionFailedException
8079 * @throws ExceptionInterface
8180 */
82- public function forceTransferFloat (Wallet $ wallet , $ amount , ExtraDtoInterface |array |null $ meta = null ): Transfer ;
81+ public function forceTransferFloat (
82+ Wallet $ wallet ,
83+ float |int |string $ amount ,
84+ ExtraDtoInterface |array |null $ meta = null
85+ ): Transfer ;
8386
84- /**
85- * @param float|string $amount
86- */
87- public function canWithdrawFloat ($ amount ): bool ;
87+ public function canWithdrawFloat (float |int |string $ amount ): bool ;
8888
8989 /**
90- * @return float|int| string
90+ * @return string
9191 */
9292 public function getBalanceFloatAttribute ();
9393}
0 commit comments