@@ -9,12 +9,7 @@ class PocketServices
99 /**
1010 * Deposit an amount to the user's wallet of a specific type.
1111 *
12- * @param \Illuminate\Database\Eloquent\Model $user
13- * @param string $type
14- * @param int|float $amount
15- * @param ?string $notes
16- *
17- * @return bool
12+ * @param ?string $notes
1813 */
1914 public function deposit (Model $ user , string $ type , int |float $ amount , ?string $ notes = null ): bool
2015 {
@@ -24,11 +19,8 @@ public function deposit(Model $user, string $type, int|float $amount, ?string $n
2419 /**
2520 * Pay the order value from the user's wallets.
2621 *
27- * @param \Illuminate\Database\Eloquent\Model $user
28- * @param int|float $orderValue
29- * @param ?string $notes
22+ * @param ?string $notes
3023 *
31- * @return void
3224 * @throws \HPWebdeveloper\LaravelPayPocket\Exceptions\InsufficientBalanceException
3325 */
3426 public function pay (Model $ user , int |float $ orderValue , ?string $ notes = null ): void
@@ -38,11 +30,6 @@ public function pay(Model $user, int|float $orderValue, ?string $notes = null):
3830
3931 /**
4032 * Get the balance of the user.
41- *
42- *
43- * @param \Illuminate\Database\Eloquent\Model $user
44- *
45- * @return float|int
4633 */
4734 public function checkBalance (Model $ user ): int |float
4835 {
@@ -51,15 +38,9 @@ public function checkBalance(Model $user): int|float
5138
5239 /**
5340 * Get the balance of a specific wallet type.
54- *
55- *
56- * @param \Illuminate\Database\Eloquent\Model $user
57- * @param string $type
58- *
59- * @return float|int
6041 */
6142 public function walletBalanceByType (Model $ user , string $ type ): float |int
6243 {
6344 return $ user ->getWalletBalanceByType ($ type );
6445 }
65- }
46+ }
0 commit comments