\ReflectionMethod
Synopsis
class ReflectionMethod
implements
Reflector
{
- // constants
- const IS_STATIC = 1;
- const IS_PUBLIC = 256;
- const IS_PROTECTED = 512;
- const IS_PRIVATE = 1024;
- const IS_ABSTRACT = 2;
- const IS_FINAL = 4;
- // methods
- public void __construct()
- public string export()
- public Closure getClosure()
- public ReflectionClass getDeclaringClass()
- public int getModifiers()
- public ReflectionMethod getPrototype()
- public mixed invoke()
- public mixed invokeArgs()
- public bool isAbstract()
- public bool isConstructor()
- public bool isDestructor()
- public bool isFinal()
- public bool isPrivate()
- public bool isProtected()
- public bool isPublic()
- public bool isStatic()
- public void setAccessible()
- public string __toString()
- final void __clone()
- public ReflectionClass getClosureScopeClass()
- public getClosureThis()
- public string getDocComment()
- public int getEndLine()
- public ReflectionExtension getExtension()
- public string getExtensionName()
- public string getFileName()
- public string getName()
- public string getNamespaceName()
- public int getNumberOfParameters()
- public int getNumberOfRequiredParameters()
- public array getParameters()
- public string getShortName()
- public int getStartLine()
- public array getStaticVariables()
- public bool inNamespace()
- public bool isClosure()
- public bool isDeprecated()
- public bool isGenerator()
- public bool isInternal()
- public bool isUserDefined()
- public bool returnsReference()
- public void __toString()
Hierarchy
Constants
Name | Value |
---|---|
IS_STATIC | 1 |
IS_PUBLIC | 256 |
IS_PROTECTED | 512 |
IS_PRIVATE | 1024 |
IS_ABSTRACT | 2 |
IS_FINAL | 4 |
Members
public
-
$class
Class name -
$name
Method name
Methods
public
- __construct() — Constructs a ReflectionMethod
- __toString() — Returns the string representation of the Reflection method object.
- __toString()
- export() — Export a reflection method.
- getClosure() — Returns a dynamically created closure for the method
- getClosureScopeClass()
- getClosureThis()
- getDeclaringClass() — Gets declaring class for the reflected method.
- getDocComment()
- getEndLine()
- getExtension()
- getExtensionName()
- getFileName()
- getModifiers() — Gets the method modifiers
- getName()
- getNamespaceName()
- getNumberOfParameters()
- getNumberOfRequiredParameters()
- getParameters()
- getPrototype() — Gets the method prototype (if there is one).
- getShortName()
- getStartLine()
- getStaticVariables()
- inNamespace()
- invoke() — Invoke
- invokeArgs() — Invoke args
- isAbstract() — Checks if method is abstract
- isClosure()
- isConstructor() — Checks if method is a constructor
- isDeprecated()
- isDestructor() — Checks if method is a destructor
- isFinal() — Checks if method is final
- isGenerator()
- isInternal()
- isPrivate() — Checks if method is private
- isProtected() — Checks if method is protected
- isPublic() — Checks if method is public
- isStatic() — Checks if method is static
- isUserDefined()
- returnsReference()
- setAccessible() — Set method accessibility