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

Breadcrumb

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

function ClosureUse::__construct

Constructs a closure use node.

Parameters

Expr\Variable $var Variable to use:

bool $byRef Whether to use by reference:

array<string, mixed> $attributes Additional attributes:

Overrides NodeAbstract::__construct

File

vendor/nikic/php-parser/lib/PhpParser/Node/ClosureUse.php, line 20

Class

ClosureUse

Namespace

PhpParser\Node

Code

public function __construct(Expr\Variable $var, bool $byRef = false, array $attributes = []) {
    $this->attributes = $attributes;
    $this->var = $var;
    $this->byRef = $byRef;
}

API Navigation

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