Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | #[\Attribute(\Attribute::TARGET_CLASS)] |
||
21 | final class ApiRateLimit |
||
22 | { |
||
23 | 9 | public function __construct($enabled = true, array $throttle = [], array $methods = []) |
|
34 | } |
||
35 | 9 | } |
|
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | public $enabled = true; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | public $throttle = []; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | * |
||
50 | * @example ["GET", "POST"] |
||
51 | */ |
||
52 | public $methods = []; |
||
53 | } |
||
54 |