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

Breadcrumb

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

function New_::__construct

Constructs a function call node.

Parameters

Node\Name|Expr|Node\Stmt\Class_ $class Class name (or class node for anonymous classes):

array<Arg|VariadicPlaceholder> $args Arguments:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php, line 23

Class

New_

Namespace

PhpParser\Node\Expr

Code

public function __construct(Node $class, array $args = [], array $attributes = []) {
    $this->attributes = $attributes;
    $this->class = $class;
    $this->args = $args;
}
RSS feed
Powered by Drupal