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

Breadcrumb

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

function Use_::__construct

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

Creates a name use (alias) builder.

Parameters

Node\Name|string $name Name of the entity (namespace, class, function, constant) to alias:

Stmt\Use_::TYPE_* $type One of the Stmt\Use_::TYPE_* constants:

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php, line 22

Class

Use_

Namespace

PhpParser\Builder

Code

public function __construct($name, int $type) {
    $this->name = BuilderHelpers::normalizeName($name);
    $this->type = $type;
}

API Navigation

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