|
ReflectionMethod::getPrototypeGets the method prototype (if there is one) Description
public ReflectionMethod ReflectionMethod::getPrototype()
Returns the methods prototype. ParametersThis function has no parameters. Return ValuesA ReflectionMethod instance of the method prototype. Errors/ExceptionsA ReflectionException exception is thrown if the method does not have a prototype. Examples
Example #1 ReflectionMethod::getPrototype example The above example will output:
object(ReflectionMethod)#2 (2) {
["name"]=>
string(10) "sayHelloTo"
["class"]=>
string(5) "Hello"
}
See Also
|