| 
 | ReflectionMethod::__constructConstructs a ReflectionMethod Description
   public  ReflectionMethod::__construct(objectstring  $objectOrMethod, string$method)Alternative signature (not supported with named arguments): public  ReflectionMethod::__construct(string  $classMethod)Warning
    The alternative signature is deprecated as of PHP 8.4.0, use ReflectionMethod::createFromMethodName instead. Constructs a new ReflectionMethod. Parameters
 
 Errors/ExceptionsA ReflectionException is thrown if the given method does not exist. Examples
 Example #1 ReflectionMethod::__construct example The 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)
 |