Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 5 | final protected function __construct(int $operations, int $interval) |
|
18 | { |
||
19 | 5 | Assertion::greaterThan($operations, 0, 'Quota must be greater than zero'); |
|
20 | 5 | Assertion::greaterThan($interval, 0, 'Seconds interval must be greater than zero'); |
|
21 | |||
22 | 5 | $this->operations = $operations; |
|
23 | 5 | $this->interval = $interval; |
|
24 | 5 | } |
|
25 | |||
61 |