ReflectionParameter::getClass Get a ReflectionClass object for the parameter being reflected or &null; &warn.deprecated.function-8-0-0; &reftitle.description; #[\Deprecated] public ReflectionClassnullReflectionParameter::getClass Gets a ReflectionClass object for the parameter being reflected or &null;. As of PHP 8.0.0 this function is deprecated and not recommended. Instead, use ReflectionParameter::getType to get the ReflectionType of the parameter, then interrogate that object to determine the parameter type. &warn.undocumented.func; &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; A ReflectionClass object, or &null; if no type is declared, or the declared type is not a class or interface. &reftitle.examples; Using the <classname>ReflectionParameter</classname> class getParameters(); $aParameter = $parameters[0]; echo $aParameter->getClass()->name; ?> ]]> &reftitle.changelog; &Version; &Description; 8.0.0 This function has been deprecated in favor of ReflectionParameter::getType instead. &reftitle.seealso; ReflectionParameter::getDeclaringClass