|
ReflectionMethod::__constructConstructs a ReflectionMethod Description
public ReflectionMethod::__construct
( mixed
$class
, string $name
)
public ReflectionMethod::__construct
( string
$class_method
)Constructs a new ReflectionMethod. Parameters
Return ValuesNo value is returned. Errors/ExceptionsA ReflectionException is thrown if the given method does not exist. Examples
Example #1 ReflectionMethod::__construct example
<?phpThe above example will output something similar to:
===> 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)
|