ReflectionMethod::getModifiersPobiera modyfikatory metody
&reftitle.description;
publicintReflectionMethod::getModifiers
Zwraca maskę bitową modyfikatorów dostępu dla obecnej metody.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
Numeryczna reprezentacja modyfikatorów.
Rzeczywiste znaczenie modyfikatorów zostało opisane w sekcji
stałych predefiniowanych.
&reftitle.examples;
Przykład użycia ReflectionMethod::getModifiers
getModifiers() . "\n";
echo implode(' ', Reflection::getModifierNames($foo->getModifiers())) . "\n";
$bar = new ReflectionMethod('Testing', 'bar');
echo "Modyfikatory dla metody bar():\n";
echo $bar->getModifiers() . "\n";
echo implode(' ', Reflection::getModifierNames($bar->getModifiers()));
?>
]]>
&example.outputs.similar;
&reftitle.seealso;
Reflection::getModifierNames