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/Builder/Use_.php \PhpParser\Builder\Use_::__construct()

Constructs an alias (use) list node.

Parameters

UseItem[] $uses Aliases:

Stmt\Use_::TYPE_* $type Type of alias:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php, line 34

Class

Use_

Namespace

PhpParser\Node\Stmt

Code

public function __construct(array $uses, int $type = self::TYPE_NORMAL, array $attributes = []) {
    $this->attributes = $attributes;
    $this->type = $type;
    $this->uses = $uses;
}

API Navigation

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