Zend\Code\Reflection\FunctionReflection
Synopsis
class FunctionReflection
extends ReflectionFunction
implements
ReflectionInterface
{
- // constants
- const PROTOTYPE_AS_ARRAY = 'prototype_as_array';
- const PROTOTYPE_AS_STRING = 'prototype_as_string';
- // Inherited constants from ReflectionFunction
- const IS_DEPRECATED = 262144;
- // Inherited members from ReflectionFunction
- public $name;
- // methods
- public DocBlockReflection getDocBlock()
- public int getStartLine()
- public string getContents()
- public array getPrototype()
- public array getParameters()
- public ReturnTag getReturn()
- public string|bool getBody()
- public void toString()
- public string __toString()
- // Inherited methods from ReflectionFunction
- public void __construct()
- public string export()
- public Closure getClosure()
- public mixed invoke()
- public mixed invokeArgs()
- public bool isDisabled()
- public string __toString()
- 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 |
---|---|
PROTOTYPE_AS_ARRAY | 'prototype_as_array' |
PROTOTYPE_AS_STRING | 'prototype_as_string' |
IS_DEPRECATED | 262144 |
Members
public
-
$name
Name of the function. Read-only, throws ReflectionException in attempt to write.
Methods
public
- __toString() — Required due to bug in php
- getBody() — Get method body
- getContents() — Get contents of function
- getDocBlock() — Get function DocBlock
- getParameters() — Get function parameters
- getPrototype() — Get method prototype
- getReturn() — Get return type tag
- getStartLine() — Get start line (position) of function
- toString()
Inherited from ReflectionFunction
public
- __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()