Zend\Server\Method\Prototype
Method prototype metadata
Synopsis
class Prototype
{
- // members
- protected string $returnType;
- protected array $parameterNameMap;
- protected array $parameters;
- // methods
- public void __construct()
- public Prototype setReturnType()
- public string getReturnType()
- public Prototype addParameter()
- public Prototype addParameters()
- public Prototype setParameters()
- public array getParameters()
- public array getParameterObjects()
- public Parameter getParameter()
- public Prototype setOptions()
- public array toArray()
Members
protected
- $parameterNameMap — array
- $parameters — array
- $returnType — string
Methods
public
- __construct() — Constructor
- addParameter() — Add a parameter
- addParameters() — Add parameters
- getParameter() — Retrieve a single parameter by name or index
- getParameterObjects() — Get parameter objects
- getParameters() — Retrieve parameters as list of types
- getReturnType() — Retrieve return type
- setOptions() — Set object state from array
- setParameters() — Set parameters
- setReturnType() — Set return value
- toArray() — Serialize to array