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

Breadcrumb

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

function Namespace_::__construct

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php \PhpParser\Node\Stmt\Namespace_::__construct()

Creates a namespace builder.

Parameters

Node\Name|string|null $name Name of the namespace:

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php, line 20

Class

Namespace_

Namespace

PhpParser\Builder

Code

public function __construct($name) {
    $this->name = null !== $name ? BuilderHelpers::normalizeName($name) : null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal