Class PhpParser\Internal\PrintableNewAnonClassNode

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
Methods inherited from PhpParser\NodeAbstract
getLine(), getStartLine(), getEndLine(), getStartTokenPos(), getEndTokenPos(), getStartFilePos(), getEndFilePos(), getComments(), getDocComment(), setDocComment(), setAttribute(), hasAttribute(), getAttribute(), getAttributes(), setAttributes(), jsonSerialize()
Properties
Properties inherited from PhpParser\NodeAbstract
$attributes