@@ -164,14 +164,14 @@ if ($parameters->accept($args)) {
164164}
165165
166166foreach ($parameters as $name => $parameter) {
167- $parameter->position(); // 0
168- $parameter->name(); // 'arg'
169- $parameter->variadic(); // false
170- $parameter->optional(); // true
171- $parameter->default(); // (parameter default value)
172- $parameter->constraint(); // Constraint
173- $parameter->annotations(); // Annotations
174- $parameter->annotation(Inject::class) // Annotation or NULL
167+ $parameter->position(); // 0
168+ $parameter->name(); // 'arg'
169+ $parameter->variadic(); // false
170+ $parameter->optional(); // true
171+ $parameter->default(); // (parameter default value)
172+ $parameter->constraint(); // Constraint
173+ $parameter->annotations(); // Annotations
174+ $parameter->annotation(Inject::class) // Annotation or NULL
175175}
176176```
177177
@@ -182,12 +182,13 @@ use lang\Reflection;
182182
183183$package= Reflection::of('org.example');
184184
185- $package->name(); // org.example
186- $package->literal(); // 'org\example'
187- $package->type('Fixture'); // Type instance
188- $package->types(); // iterable with Type instances
189- $package->parent() // Package or NULL
190- $package->child('impl') // Child package "org.example.impl" or NULL
191- $package->children(); // iterable with Package instances
192- $package->classLoaders(); // iterable with lang.ClassLoader instances
185+ $package->name(); // org.example
186+ $package->literal(); // 'org\example'
187+ $package->type('Fixture'); // Type instance
188+ $package->implementation($t, 'Fixture'); // Type instance (subclass of $t)
189+ $package->types(); // iterable with Type instances
190+ $package->parent() // Package or NULL
191+ $package->child('impl') // Child package "org.example.impl" or NULL
192+ $package->children(); // iterable with Package instances
193+ $package->classLoaders(); // iterable with lang.ClassLoader instances
193194```
0 commit comments