| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 0 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 18 | public function __construct( | ||
| 19 | /** | ||
| 20 | * Key for structured data (like ClassParam behavior) | ||
| 21 | * | ||
| 22 | * When specified, looks for data under this key: | ||
| 23 | * #[Input(key: 'user')] -> expects $query['user'] = ['name' => 'John', 'age' => 30] | ||
| 24 | * | ||
| 25 | * When null, uses flat parameter mapping: | ||
| 26 | * #[Input] -> expects $query = ['firstName' => 'John', 'lastName' => 'Doe'] | ||
| 27 | */ | ||
| 28 | public readonly string|null $key = null, | ||
| 29 |     ) { | ||
| 30 | } | ||
| 32 |