| 1: | <?php |
| 2: | declare(strict_types=1); |
| 3: | |
| 4: | namespace om\ICal\Parser; |
| 5: | |
| 6: | enum ParserMode { |
| 7: | /** |
| 8: | * Any syntax error, invalid value, invalid RRULE or unresolved TZID throws an exception. |
| 9: | * For validation, tests and debugging. |
| 10: | */ |
| 11: | case Strict; |
| 12: | |
| 13: | /** |
| 14: | * Recoverable problems are repaired and reported as warnings. For real-world feeds. |
| 15: | */ |
| 16: | case Permissive; |
| 17: | } |
| 18: |