diff --git a/reference/reflection/reflectionfunctionabstract/hasreturntype.xml b/reference/reflection/reflectionfunctionabstract/hasreturntype.xml new file mode 100644 index 0000000000..638ccc95e6 --- /dev/null +++ b/reference/reflection/reflectionfunctionabstract/hasreturntype.xml @@ -0,0 +1,114 @@ + + + + + + ReflectionFunctionAbstract::hasReturnType + Checks if the function has a specified return type + + + + &reftitle.description; + + public boolReflectionFunctionAbstract::hasReturnType + + + + Checks whether the reflected function has a return type specified. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Returns &true; if the function is a specified return type, otherwise &false;. + + + + + &reftitle.examples; + + + <methodname>ReflectionFunctionAbstract::hasReturnType</methodname> example + +hasReturnType()); +]]> + + &example.outputs; + + + + + + + Usage on built-in functions + +hasReturnType()); +]]> + + &example.outputs; + + + + + + + This is because many internal functions do not have types specified for their + parameters or return values. It is therefore best to avoid using this + method on built-in functions. + + + + + &reftitle.seealso; + + + ReflectionFunctionAbstract::getReturnType + + + + + + + diff --git a/reference/reflection/versions.xml b/reference/reflection/versions.xml index ef351e1c49..688be6d104 100644 --- a/reference/reflection/versions.xml +++ b/reference/reflection/versions.xml @@ -50,6 +50,7 @@ +