Method | Description | |
---|---|---|
normalizeDocComment ( PhpParser\Comment\Doc | string $docComment ) : PhpParser\Comment\Doc | Normalizes a doc comment: Converts plain strings to PhpParser\Comment\Doc. | |
normalizeName ( |
Normalizes a name: Converts plain string names to PhpParser\Node\Name. | |
normalizeNode ( phpparser\Node | phpparser\Builder $node ) : phpparser\Node | Normalizes a node: Converts builder objects to nodes. | |
normalizeType ( |
Normalizes a type: Converts plain-text type names into proper AST representation. | |
normalizeValue ( mixed $value ) : PhpParser\Node\Expr | Normalizes a value: Converts nulls, booleans, integers, floats, strings and arrays into their respective nodes | |
setModifier ( integer $modifier ) | Sets a modifier in the $this->type property. |
protected normalizeDocComment ( PhpParser\Comment\Doc | string $docComment ) : PhpParser\Comment\Doc | ||
$docComment | PhpParser\Comment\Doc | string | The doc comment to normalize |
return | PhpParser\Comment\Doc | The normalized doc comment |
protected normalizeName ( |
||
$name | The name to normalize | |
return | The normalized name |
protected normalizeNode ( phpparser\Node | phpparser\Builder $node ) : phpparser\Node | ||
$node | phpparser\Node | phpparser\Builder | The node to normalize |
return | phpparser\Node | The normalized node |
protected normalizeType ( |
||
$type | The type to normalize | |
return | The normalized type |
protected normalizeValue ( mixed $value ) : PhpParser\Node\Expr | ||
$value | mixed | The value to normalize |
return | PhpParser\Node\Expr | The normalized value |
protected setModifier ( integer $modifier ) | ||
$modifier | integer | Modifier to set |