Zend\Code\Generator\ParameterGenerator
Synopsis
class ParameterGenerator
extends AbstractGenerator
{
- // Inherited constants from AbstractGenerator
- const LINE_FEED = "\n";
- // members
- protected string $name;
- protected string $type;
- protected string|ValueGenerator $defaultValue;
- protected int $position;
- protected bool $passedByReference;
- protected array $simple;
- // Inherited members from AbstractGenerator
- protected bool $isSourceDirty;
- protected int|string $indentation;
- protected string $sourceContent;
- // methods
- public static ParameterGenerator fromReflection()
- public static ParameterGenerator fromArray()
- public void __construct()
- public ParameterGenerator setType()
- public string getType()
- public ParameterGenerator setName()
- public string getName()
- public ParameterGenerator setDefaultValue()
- public string getDefaultValue()
- public ParameterGenerator setPosition()
- public int getPosition()
- public bool getPassedByReference()
- public ParameterGenerator setPassedByReference()
- public string generate()
- // Inherited methods from AbstractGenerator
- public void __construct()
- public AbstractGenerator setSourceDirty()
- public bool isSourceDirty()
- public AbstractGenerator setIndentation()
- public string getIndentation()
- public AbstractGenerator setSourceContent()
- public string getSourceContent()
- public AbstractGenerator setOptions()
Hierarchy
Constants
Name | Value |
---|---|
LINE_FEED | "\n" |
Members
protected
- $defaultValue — Zend\Code\Generator\string|ValueGenerator
- $indentation — Zend\Code\Generator\int|string
- $isSourceDirty — Zend\Code\Generator\bool
- $name — string
- $passedByReference — Zend\Code\Generator\bool
- $position — int
- $simple — array
- $sourceContent — string
- $type — string
Methods
public
- __construct()
- fromArray() — Generate from array
- fromReflection()
- generate()
- getDefaultValue()
- getName()
- getPassedByReference()
- getPosition()
- getType()
- setDefaultValue() — Set the default value of the parameter.
- setName()
- setPassedByReference()
- setPosition()
- setType()