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

Breadcrumb

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

function Name::__construct

Constructs a name node.

Parameters

string|string[]|self $name Name as string, part array or Name instance (copy ctor):

array<string, mixed> $attributes Additional attributes:

Overrides NodeAbstract::__construct

File

vendor/nikic/php-parser/lib/PhpParser/Node/Name.php, line 27

Class

Name

Namespace

PhpParser\Node

Code

public final function __construct($name, array $attributes = []) {
    $this->attributes = $attributes;
    $this->name = self::prepareName($name);
}
RSS feed
Powered by Drupal