Commit 46bb70c
Implement IteratorAggregate and Countable on ParseResult
Users previously had to call getParsedRawData() to iterate over results
or countResults() for counting. ParseResult now implements \IteratorAggregate
and \Countable so it can be used directly in foreach loops and with count(),
reducing boilerplate in consumer code.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent edc3712 commit 46bb70c
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
0 commit comments