|
ReflectionMethod::getDeclaringClassGets declaring class for the reflected method Description
public ReflectionClass ReflectionMethod::getDeclaringClass()
Gets the declaring class for the reflected method. ParametersThis function has no parameters. Return ValuesA ReflectionClass object of the class that the reflected method is part of. Examples
Example #1 ReflectionMethod::getDeclaringClass example The above example will output:
object(ReflectionClass)#2 (1) {
["name"]=>
string(10) "HelloWorld"
}
See Also
|