From 206ead71b97884710e6b810965748ac078e762de Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 13 Mar 2017 09:21:08 +0000 Subject: [PATCH] Reflection::getModifierNames() content git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342104 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../reflection/getmodifiernames.xml | 58 +++++++++++++++++-- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/reference/reflection/reflection/getmodifiernames.xml b/reference/reflection/reflection/getmodifiernames.xml index da44db49d4..e1988b9fef 100644 --- a/reference/reflection/reflection/getmodifiernames.xml +++ b/reference/reflection/reflection/getmodifiernames.xml @@ -16,9 +16,6 @@ Gets modifier names. - - &warn.undocumented.func; - @@ -29,7 +26,7 @@ modifiers - The modifiers to get, which is from a numeric value. + Bitfield of the modifiers to get. @@ -44,11 +41,62 @@ + + &reftitle.examples; + + + <methodname>Reflection::getModifierNames</methodname> example + +getModifiers() . "\n"; +echo implode(' ', Reflection::getModifierNames($foo->getModifiers())) . "\n"; + +$bar = new ReflectionMethod('Testing', 'bar'); + +echo "Modifiers for method bar():\n"; +echo $bar->getModifiers() . "\n"; +echo implode(' ', Reflection::getModifierNames($bar->getModifiers())); +]]> + + &example.outputs.similar; + + + + + + + &reftitle.seealso; - Reflection::export + ReflectionClass::getModifiers + ReflectionMethod::getModifiers + ReflectionProperty::getModifiers