Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PrintableNewAnonClassNode.php

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\Internal

Code

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;
}
RSS feed
Powered by Drupal