diff --git a/reference/reflection/reflectionparameter/getclass.xml b/reference/reflection/reflectionparameter/getclass.xml index 00a6f53e13..016f8ece54 100644 --- a/reference/reflection/reflectionparameter/getclass.xml +++ b/reference/reflection/reflectionparameter/getclass.xml @@ -4,7 +4,7 @@ ReflectionParameter::getClass - Get class + Get the type hinted class @@ -14,7 +14,7 @@ - Gets a class. + Gets the class type hinted for the parameter as a ReflectionClass object. &warn.undocumented.func; @@ -32,6 +32,34 @@ A ReflectionClass object. + + + &reftitle.examples; + + + Using the <classname>ReflectionParameter</classname> class + +getParameters(); +$aParameter = $parameters[0]; + +echo $aParameter->getClass()->name; +?> +]]> + + &example.outputs; + + + + + + &reftitle.seealso;