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

Breadcrumb

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

function StaticVar::__construct

Constructs a static variable node.

Parameters

Expr\Variable $var Name:

null|Node\Expr $default Default value:

array<string, mixed> $attributes Additional attributes:

Overrides NodeAbstract::__construct

File

vendor/nikic/php-parser/lib/PhpParser/Node/StaticVar.php, line 21

Class

StaticVar

Namespace

PhpParser\Node

Code

public function __construct(Expr\Variable $var, ?Node\Expr $default = null, array $attributes = []) {
    $this->attributes = $attributes;
    $this->var = $var;
    $this->default = $default;
}
RSS feed
Powered by Drupal