Zend\Code\Generator\DocBlock\Tag\ReturnTag
Synopsis
class ReturnTag
extends AbstractTypeableTag
implements
TagInterface
{
- // Inherited constants from AbstractGenerator
- const LINE_FEED = "\n";
- // Inherited members from AbstractTypeableTag
- protected string $description;
- protected array $types;
- // Inherited members from AbstractGenerator
- protected bool $isSourceDirty;
- protected int|string $indentation;
- protected string $sourceContent;
- // methods
- public static ReturnTag fromReflection()
- public string getName()
- public ReturnTag setDatatype()
- public string getDatatype()
- public string generate()
- // Inherited methods from AbstractTypeableTag
- public void __construct()
- public ReturnTag setDescription()
- public string getDescription()
- public ReturnTag setTypes()
- public array getTypes()
- public string getTypesAsString()
- // 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
Extends
Implements
Constants
Name | Value |
---|---|
LINE_FEED | "\n" |
Members
protected
- $description — string
- $indentation — Zend\Code\Generator\int|string
- $isSourceDirty — Zend\Code\Generator\bool
- $sourceContent — string
- $types — array
Methods
public
Inherited from Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag
public
- getDescription()
- getTypes()
- getTypesAsString()
- setDescription()
- setTypes() — Array of types or string with types delimited by pipe (|) e.g. array('int', 'null') or "int|null"