|
| 1 | +# Quick Reference: 96 Remaining Signatures by Priority |
| 2 | + |
| 3 | +## HIGH PRIORITY: Category 3 - Easy Wins (40 signatures) |
| 4 | + |
| 5 | +These already have return types in PHP source. Just add to docs! |
| 6 | + |
| 7 | +### Collection Methods (30) - All return `CollectionInterface` |
| 8 | +``` |
| 9 | +append, appendItem, buffered, chunk, chunkWithKeys, combine, compile, countBy, |
| 10 | +extract, filter, groupBy, indexBy, insert, listNested, map, match, nest, |
| 11 | +prepend, prependItem, reject, sample, shuffle, skip, sortBy, stopWhen, take, |
| 12 | +through, transpose, unfold, zip |
| 13 | +``` |
| 14 | + |
| 15 | +### Other Methods (10) |
| 16 | +| Method | Return Type | |
| 17 | +|--------|-------------| |
| 18 | +| `Log::log()` | `bool` | |
| 19 | +| `Session::check()` | `bool` | |
| 20 | +| `Session::delete()` | `void` | |
| 21 | +| `Session::destroy()` | `void` | |
| 22 | +| `Session::read()` | `mixed` | |
| 23 | +| `Session::readOrFail()` | `mixed` | |
| 24 | +| `Session::renew()` | `void` | |
| 25 | +| `Session::write()` | `void` | |
| 26 | +| `Debugger::getType()` | `string` | |
| 27 | +| `Hash::insert()` | `ArrayAccess\|array` | |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## MEDIUM PRIORITY: Categories 1 & 2 (22 signatures) |
| 32 | + |
| 33 | +### Category 1: Fluent Methods (9) - Need `static`/`self` return type |
| 34 | + |
| 35 | +``` |
| 36 | +Controller::addViewClasses() |
| 37 | +CorsBuilder::allowCredentials() |
| 38 | +CorsBuilder::allowHeaders() |
| 39 | +CorsBuilder::allowMethods() |
| 40 | +CorsBuilder::exposeHeaders() |
| 41 | +CorsBuilder::maxAge() |
| 42 | +Table::addBehavior() |
| 43 | +FormHelper::unlockField() |
| 44 | +RouteBuilder::setRouteClass() |
| 45 | +``` |
| 46 | + |
| 47 | +### Category 2: No Return Type in Source (13) - Need investigation |
| 48 | + |
| 49 | +**Collection:** |
| 50 | +- `each()` |
| 51 | + |
| 52 | +**ConsoleOptionParser (7):** |
| 53 | +- `addArgument()`, `addArguments()`, `addOption()`, `addOptions()` |
| 54 | +- `merge()`, `setDescription()`, `setEpilog()` |
| 55 | + |
| 56 | +**CorsBuilder:** |
| 57 | +- `allowOrigin()` |
| 58 | + |
| 59 | +**RouteBuilder (3):** |
| 60 | +- `fallbacks()`, `plugin()`, `prefix()` |
| 61 | + |
| 62 | +**View:** |
| 63 | +- `set()` |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## LOW PRIORITY: Categories 4 & 5 (34 signatures) |
| 68 | + |
| 69 | +### Category 4: Callback Classes (1) |
| 70 | +- `Class::responseHeader()` - Documentation convention only |
| 71 | + |
| 72 | +### Category 5: Not Found/Inherited (33) |
| 73 | + |
| 74 | +These need research to determine if they're inherited, deprecated, or in traits: |
| 75 | + |
| 76 | +- **DateTime methods (7)**: Likely from Chronos library |
| 77 | +- **Helper methods (5)**: Check traits (FormHelper, HtmlHelper, PaginatorHelper) |
| 78 | +- **Entity methods (4)**: Check EntityTrait |
| 79 | +- **Controller methods (3)**: Check traits (fetchTable, fetchModel, set) |
| 80 | +- **Others (14)**: Various classes |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +## Action Plan |
| 85 | + |
| 86 | +### Phase 1: Quick Wins (Est. 1-2 hours) |
| 87 | +✓ Add 40 signatures that already have return types in source |
| 88 | + |
| 89 | +### Phase 2: Fluent Methods (Est. 2-3 hours) |
| 90 | +✓ Add return types to 9 fluent methods in PHP source |
| 91 | +✓ Update documentation |
| 92 | + |
| 93 | +### Phase 3: Investigation (Est. 3-4 hours) |
| 94 | +✓ Investigate 13 methods without return types |
| 95 | +✓ Determine and add appropriate types |
| 96 | + |
| 97 | +### Phase 4: Research (Est. 4-6 hours) |
| 98 | +✓ Research 33 'not found' methods |
| 99 | +✓ Determine if inherited/deprecated/in traits |
| 100 | +✓ Update or remove from documentation |
| 101 | + |
| 102 | +**Total estimated effort: 10-15 hours** |
0 commit comments