| 1: | <?php |
| 2: | declare(strict_types=1); |
| 3: | |
| 4: | namespace om\RRule; |
| 5: | |
| 6: | /** |
| 7: | * Limits of recurrence expansion; exceeding one throws ResourceLimitException. |
| 8: | */ |
| 9: | final readonly class RecurrenceLimits { |
| 10: | /** |
| 11: | * @param int $maxInstances occurrences returned for one recurring component |
| 12: | * @param int $maxIterations FREQ periods examined for one rule |
| 13: | */ |
| 14: | public function __construct( |
| 15: | public int $maxInstances = 100_000, |
| 16: | public int $maxIterations = 1_000_000, |
| 17: | ) { |
| 18: | } |
| 19: | } |
| 20: |