Debian Codegraph @

lib/3rdParty/composer/illuminate/support/Facades/RateLimiter.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Support\Facades;
4
5 /**
6 * @method static \Illuminate\Cache\RateLimiter for(\UnitEnum|string $name, \Closure $callback)
7 * @method static \Closure|null limiter(\UnitEnum|string $name)
8 * @method static mixed attempt(string $key, int $maxAttempts, \Closure $callback, \DateTimeInterface|\DateInterval|int $decaySeconds = 60)
9 * @method static bool tooManyAttempts(string $key, int $maxAttempts)
10 * @method static int hit(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60)
11 * @method static int increment(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60, int $amount = 1)
12 * @method static int decrement(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60, int $amount = 1)
13 * @method static mixed attempts(string $key)
14 * @method static bool resetAttempts(string $key)
15 * @method static int remaining(string $key, int $maxAttempts)
16 * @method static int retriesLeft(string $key, int $maxAttempts)
17 * @method static void clear(string $key)
18 * @method static int availableIn(string $key)
19 * @method static string cleanRateLimiterKey(string $key)
20 *
21 * @see \Illuminate\Cache\RateLimiter
22 */
23 class RateLimiter extends Facade
24 {
25 /**
26 * Get the registered name of the component.
27 *
28 * @return string
29 */
30 protected static function getFacadeAccessor()
31 {
32 return \Illuminate\Cache\RateLimiter::class;
33 }
34 }