File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1282,9 +1282,19 @@ $attr = parameterAttribute('foo', 'myFunction');
12821282$attr('bin-123'); // validates
12831283```
12841284
1285+ ### reflectionToParameter
1286+
1287+ Retrieve a ` ParameterInterface ` instance from a ` ReflectionProperty ` or ` ReflectionParameter ` .
1288+
1289+ ``` php
1290+ use function Chevere\Parameter\reflectionToParameter;
1291+ ;
1292+ $parameter = reflectionToParameter($reflection);
1293+ ```
1294+
12851295### reflectionToParameters
12861296
1287- Retrieve a ` Parameters ` instance from a ` ReflectionFunction ` or ` ReflectionMethod ` .
1297+ Retrieve a ` ParametersInterface ` instance from a ` ReflectionFunction ` or ` ReflectionMethod ` .
12881298
12891299``` php
12901300use function Chevere\Parameter\reflectionToParameters;
@@ -1294,7 +1304,7 @@ $parameters = reflectionToParameters($reflection);
12941304
12951305### reflectionToReturn
12961306
1297- Retrieve a ` ParameterInterface ` for the return type from a ` ReflectionFunction ` or ` ReflectionMethod ` .
1307+ Retrieve a ` ParameterInterface ` instance for the return type from a ` ReflectionFunction ` or ` ReflectionMethod ` .
12981308
12991309``` php
13001310use function Chevere\Parameter\reflectionToReturn;
You can’t perform that action at this time.
0 commit comments