| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | abstract class ARateLimit { |
||
| 35 | /** |
||
| 36 | * @since 27.0.0 |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 39 | protected int $limit, |
||
| 40 | protected int $period, |
||
| 41 | ) { |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @since 27.0.0 |
||
| 46 | */ |
||
| 47 | public function getLimit(): int { |
||
| 48 | return $this->limit; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @since 27.0.0 |
||
| 53 | */ |
||
| 54 | public function getPeriod(): int { |
||
| 56 | } |
||
| 57 | } |
||
| 58 |