@@ -99,7 +99,7 @@ public function limiter($name)
99
99
* @param string $key
100
100
* @param int $maxAttempts
101
101
* @param \Closure $callback
102
- * @param int $decaySeconds
102
+ * @param \DateTimeInterface|\DateInterval| int $decaySeconds
103
103
* @return mixed
104
104
*/
105
105
public function attempt ($ key , $ maxAttempts , Closure $ callback , $ decaySeconds = 60 )
@@ -141,7 +141,7 @@ public function tooManyAttempts($key, $maxAttempts)
141
141
* Increment (by 1) the counter for a given key for a given decay time.
142
142
*
143
143
* @param string $key
144
- * @param int $decaySeconds
144
+ * @param \DateTimeInterface|\DateInterval| int $decaySeconds
145
145
* @return int
146
146
*/
147
147
public function hit ($ key , $ decaySeconds = 60 )
@@ -153,7 +153,7 @@ public function hit($key, $decaySeconds = 60)
153
153
* Increment the counter for a given key for a given decay time by a given amount.
154
154
*
155
155
* @param string $key
156
- * @param int $decaySeconds
156
+ * @param \DateTimeInterface|\DateInterval| int $decaySeconds
157
157
* @param int $amount
158
158
* @return int
159
159
*/
@@ -184,7 +184,7 @@ public function increment($key, $decaySeconds = 60, $amount = 1)
184
184
* Decrement the counter for a given key for a given decay time by a given amount.
185
185
*
186
186
* @param string $key
187
- * @param int $decaySeconds
187
+ * @param \DateTimeInterface|\DateInterval| int $decaySeconds
188
188
* @param int $amount
189
189
* @return int
190
190
*/
0 commit comments