|
ReflectionMethod::getDeclaringClassGets declaring class for the reflected method. Description
public ReflectionClass ReflectionMethod::getDeclaringClass
( void
)
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
<?phpThe above example will output:
object(ReflectionClass)#2 (1) {
["name"]=>
string(10) "HelloWorld"
}
See Also
|