ArrayShapeGenerator
in package
FinalYes
Tags
Table of Contents
Methods
- generate() : string
- doGeneratePhpDoc() : string
- dumpNodeKey() : string
- generateInlinePhpDocForNode() : string
- getNormalizedTypes() : array<int, string>
- handleNumericNode() : string
Methods
generate()
public
static generate(NodeInterface $node) : string
Parameters
- $node : NodeInterface
Return values
stringdoGeneratePhpDoc()
private
static doGeneratePhpDoc(NodeInterface $node[, int $nestingLevel = 1 ]) : string
Parameters
- $node : NodeInterface
- $nestingLevel : int = 1
Return values
stringdumpNodeKey()
private
static dumpNodeKey(NodeInterface $node[, ArrayNode|null $parent = null ]) : string
Parameters
- $node : NodeInterface
- $parent : ArrayNode|null = null
Return values
stringgenerateInlinePhpDocForNode()
private
static generateInlinePhpDocForNode(BaseNode $node) : string
Parameters
- $node : BaseNode
Return values
stringgetNormalizedTypes()
private
static getNormalizedTypes(BaseNode $node[, array<string|int, mixed> $excluded = [] ]) : array<int, string>
Parameters
- $node : BaseNode
- $excluded : array<string|int, mixed> = []
Return values
array<int, string>handleNumericNode()
private
static handleNumericNode(NumericNode $node) : string
Parameters
- $node : NumericNode