|
ReflectionMethod::getPrototypeGets the method prototype (if there is one). Beschreibung
public ReflectionMethod ReflectionMethod::getPrototype
( void
)
Returns the methods prototype. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteA ReflectionMethod instance of the method prototype. Fehler/ExceptionsA ReflectionException exception is thrown if the method does not have a prototype. Beispiele
Beispiel #1 ReflectionMethod::getPrototype example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
object(ReflectionMethod)#2 (2) {
["name"]=>
string(10) "sayHelloTo"
["class"]=>
string(5) "Hello"
}
Siehe auch
|