Zend\Server\Reflection\AbstractFunction
Function/Method Reflection
Decorates a ReflectionFunction. Allows setting and retrieving an alternate
'service' name (i.e., the name to be used when calling via a service),
setting and retrieving the description (originally set using the docblock
contents), retrieving the callback and callback type, retrieving additional
method invocation arguments, and retrieving the
method .
Synopsis
class AbstractFunction
{
- // members
- protected ReflectionFunctionAbstract $reflection;
- protected array $argv;
- protected array $config;
- protected string $class;
- protected string $description;
- protected string $namespace;
- protected array $prototypes;
- private $return;
- private $returnDesc;
- private $paramDesc;
- private $sigParams;
- private $sigParamsDepth;
- // methods
- public void __construct()
- protected void addTree()
- protected array buildTree()
- protected array buildSignatures()
- protected array reflect()
- public mixed __call()
- public mixed __get()
- public void __set()
- public void setNamespace()
- public string getNamespace()
- public void setDescription()
- public string getDescription()
- public array getPrototypes()
- public array getInvokeArguments()
- public void __wakeup()
Hierarchy
Members
private
- $paramDesc
- $return
- $returnDesc
- $sigParams
- $sigParamsDepth
protected
- $argv
—
array
Additional arguments to pass to method on invocation - $class
—
string
Declaring class (needed for when serialization occurs) - $config
—
array
Used to store extra configuration for the method (typically done by the server class, e.g., to indicate whether or not to instantiate a class). - $description
—
string
Function/method description - $namespace
—
string
Namespace with which to prefix function/method name - $prototypes
—
array
Prototypes - $reflection — ReflectionFunctionAbstract
Methods
protected
- addTree() — Create signature node tree
- buildSignatures() — Build method signatures
- buildTree() — Build the signature tree
- reflect() — Use code reflection to create method signatures
public
- __construct() — Constructor
- __call() — Proxy reflection calls
- __get() — Retrieve configuration parameters
- __set() — Set configuration parameters
- __wakeup() — Wakeup from serialization
- getDescription() — Retrieve the description
- getInvokeArguments() — Retrieve additional invocation arguments
- getNamespace() — Return method's namespace
- getPrototypes() — Retrieve all prototypes as array of {@link \Zend\Server\Reflection\Prototype}s
- setDescription() — Set the description
- setNamespace() — Set method's namespace