Methods |
public
|
__construct(object|class-string $objectOrClass, string $method)
|
#
|
public
|
accepts(string $typeName, bool $isBuiltin = false, int<0, max> $position = 0): bool
Check if a parameter has a type hint and accepts values of a given type
Check if a parameter has a type hint and accepts values of a given type
Limitations:
- Intersection types are ignored
- Relative class types are not resolved
|
#
|
public
|
returns(string $typeName, bool $isBuiltin = false, bool $allowNull = true): bool
Check if the method has a type hint and returns a given type
Check if the method has a type hint and returns a given type
Limitations:
- Always returns
false for intersection types
- Relative class types are not resolved
|
#
|
public
|
getParameter(int<0, max> $position): ReflectionParameter
Get the parameter at the given position
Get the parameter at the given position
Throws
|
#
|
public
|
getParameterIndex((Closure(string $name, bool $fromData): string)|null $normaliser = null): ParameterIndex
Get a parameter index for the method
Get a parameter index for the method
|
#
|