|
ReflectionGenerator::getFunctionGets the function name of the generator Description
public ReflectionFunctionAbstract ReflectionGenerator::getFunction()
Enables the function name of the generator to be obtained by returning a class derived from ReflectionFunctionAbstract. ParametersThis function has no parameters. Return ValuesReturns a ReflectionFunctionAbstract class. This will be ReflectionFunction for functions, or ReflectionMethod for methods. Changelog
Examples
Example #1 ReflectionGenerator::getFunction example The above example will output something similar to:
object(ReflectionFunction)#3 (1) {
["name"]=>
string(3) "gen"
}
See Also
|