|
ReflectionMethod::__constructConstructs a ReflectionMethod Beschreibung
public ReflectionMethod::__construct
( mixed
$class
, string $name
)
public ReflectionMethod::__construct
( string
$class_method
)Constructs a new ReflectionMethod. Parameter-Liste
RückgabewerteEs wird kein Wert zurückgegeben. Fehler/ExceptionsA ReflectionException is thrown if the given method does not exist. Beispiele
Beispiel #1 ReflectionMethod::__construct example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
===> The user-defined final public static method 'increment' (which is a regular method)
declared in /Users/philip/cvs/phpdoc/test.php
lines 14 to 17
having the modifiers 261[final public static]
---> Documentation:
'/**
* Increment counter
*
* @final
* @static
* @access public
* @return int
*/'
---> Invocation results in: int(1)
|