From e9f4e006a191e2164ba186f69334d87ddf96142a Mon Sep 17 00:00:00 2001 From: Thomas Punt Date: Thu, 20 Aug 2015 14:06:46 +0000 Subject: [PATCH] Document ReflectionFunctionAbstract::hasReturnType() method git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337566 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../hasreturntype.xml | 114 ++++++++++++++++++ reference/reflection/versions.xml | 1 + 2 files changed, 115 insertions(+) create mode 100644 reference/reflection/reflectionfunctionabstract/hasreturntype.xml 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 @@ +