function PrintableNewAnonClassNode::__construct
Parameters
Node\AttributeGroup[] $attrGroups PHP attribute groups:
(Node\Arg|Node\VariadicPlaceholder)[] $args Arguments:
Node\Name|null $extends Name of extended class:
Node\Name[] $implements Names of implemented interfaces:
Node\Stmt[] $stmts Statements:
array<string, mixed> $attributes Attributes:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Internal/ PrintableNewAnonClassNode.php, line 40
Class
- PrintableNewAnonClassNode
- This node is used internally by the format-preserving pretty printer to print anonymous classes.
Namespace
PhpParser\InternalCode
public function __construct(array $attrGroups, int $flags, array $args, ?Node\Name $extends, array $implements, array $stmts, array $attributes) {
parent::__construct($attributes);
$this->attrGroups = $attrGroups;
$this->flags = $flags;
$this->args = $args;
$this->extends = $extends;
$this->implements = $implements;
$this->stmts = $stmts;
}