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(
AttributeGroup[] $attrGroups,
int $flags,
(Arg|VariadicPlaceholder)[] $args,
Name|null $extends,
Name[] $implements,
Stmt[] $stmts,
array<string, mixed> $attributes,
)
|
# |
public
static
|
fromNewNode(New_ $newNode): self
|
# |
public
|
getType(): string
|
# |
public
|
getSubNodeNames(): array
|
# |
Properties | |||
---|---|---|---|
public
|
AttributeGroup[]
|
$attrGroups
|
# |
public
|
int
|
$flags
|
# |
public
|
(Arg|VariadicPlaceholder)[]
|
$args
|
# |
public
|
null|Name
|
$extends
|
# |
public
|
Name[]
|
$implements
|
# |
public
|
Stmt[]
|
$stmts
|
# |
Properties inherited from PhpParser\NodeAbstract |
---|
$attributes |