\ReflectionFunction
Synopsis
class ReflectionFunction
implements
Reflector
{
- // constants
- const IS_DEPRECATED = 262144;
- // members
- public $name;
- // methods
- public void __construct()
- public string export()
- public Closure getClosure()
- public mixed invoke()
- public mixed invokeArgs()
- public bool isDisabled()
- 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_DEPRECATED | 262144 |
Members
public
-
$name
Name of the function. Read-only, throws ReflectionException in attempt to write.
Methods
public
- __construct() — Constructs a ReflectionFunction object
- __toString() — To string
- __toString()
- export() — Exports function
- getClosure() — Returns a dynamically created closure for the function
- getClosureScopeClass()
- getClosureThis()
- getDocComment()
- getEndLine()
- getExtension()
- getExtensionName()
- getFileName()
- getName()
- getNamespaceName()
- getNumberOfParameters()
- getNumberOfRequiredParameters()
- getParameters()
- getShortName()
- getStartLine()
- getStaticVariables()
- inNamespace()
- invoke() — Invokes function
- invokeArgs() — Invokes function args
- isClosure()
- isDeprecated()
- isDisabled() — Checks if function is disabled
- isGenerator()
- isInternal()
- isUserDefined()
- returnsReference()