|
ReflectionMethod::getDeclaringClassGets declaring class for the reflected method. Beschreibung
public ReflectionClass ReflectionMethod::getDeclaringClass
( void
)
Gets the declaring class for the reflected method. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteA ReflectionClass object of the class that the reflected method is part of. Beispiele
Beispiel #1 ReflectionMethod::getDeclaringClass example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
object(ReflectionClass)#2 (1) {
["name"]=>
string(10) "HelloWorld"
}
Siehe auch
|