|
ReflectionGenerator::getFunctionGets the function name of the generator Beschreibung
public ReflectionFunctionAbstract ReflectionGenerator::getFunction
( void
)
Enables the function name of the generator to be obtained by returning a class derived from ReflectionFunctionAbstract. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns a ReflectionFunctionAbstract class. This will be ReflectionFunction for functions, or ReflectionMethod for methods. Beispiele
Beispiel #1 ReflectionGenerator::getFunction example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
object(ReflectionFunction)#3 (1) {
["name"]=>
string(3) "gen"
}
Siehe auch
|