1 | <?php |
||
8 | class RateLimited |
||
9 | { |
||
10 | /** @var bool|\Closure */ |
||
11 | protected $enabled = true; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $connectionName = ''; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $key; |
||
18 | |||
19 | /** @var int */ |
||
20 | protected $timeSpanInSeconds = 1; |
||
21 | |||
22 | /** @var int */ |
||
23 | protected $allowedNumberOfJobsInTimeSpan = 5; |
||
24 | |||
25 | /** @var int */ |
||
26 | protected $releaseInSeconds = 5; |
||
27 | |||
28 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * @param bool|\Closure $enabled |
||
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function enabled($enabled = true) |
||
46 | |||
47 | public function connectionName(string $connectionName) |
||
53 | |||
54 | public function key(string $key) |
||
60 | |||
61 | public function allow(int $allowedNumberOfJobsInTimeSpan) |
||
67 | |||
68 | public function everySecond(int $timespanInSeconds = 1) |
||
74 | |||
75 | public function everySeconds(int $timespanInSeconds) |
||
79 | |||
80 | public function everyMinute(int $timespanInMinutes = 1) |
||
84 | |||
85 | public function everyMinutes(int $timespanInMinutes) |
||
89 | |||
90 | public function releaseAfterOneSecond() |
||
94 | |||
95 | public function releaseAfterSeconds(int $releaseInSeconds) |
||
101 | |||
102 | public function releaseAfterOneMinute() |
||
106 | |||
107 | public function releaseAfterMinutes(int $releaseInSeconds) |
||
111 | |||
112 | public function handle($job, $next) |
||
133 | } |
||
134 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.