ReflectionFunction::getParameters()
or ReflectionMethod::getParameters()
return an array of ReflectionParameter
instances.
Now on the ReflectionParameter
instances you can use ReflectionParameter::getClass()
to get the classes you need.
To get the class' name, you need to access the name
property of that ReflectionClass
which was returned by ReflectionParameter::getClass()
.