extends |
Expr |
---|
This node is used internally by the format-preserving pretty printer to print anonymous classes.
The normal anonymous class structure violates assumptions about the order of token offsets. Namely, the constructor arguments are part of the Expr\New_ node and follow the class node, even though they are actually interleaved with them. This special node type is used temporarily to restore a sane token offset order.
Methods | ||
---|---|---|
public
|
__construct(array $attrGroups, array $args, Name $extends = null, array $implements, array $stmts, array $attributes)
|
# |
public
static
|
fromNewNode(New_ $newNode)
|
# |
public
|
getType(): string
|
# |
public
|
getSubNodeNames(): array
|
# |
Properties | |||
---|---|---|---|
public
|
AttributeGroup[]
|
$attrGroups
|
# |
public
|
Arg[]
|
$args
|
# |
public
|
null|Name
|
$extends
|
# |
public
|
Name[]
|
$implements
|
# |
public
|
Stmt[]
|
$stmts
|
# |
Properties inherited from PhpParser\NodeAbstract |
---|
$attributes |