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

Breadcrumb

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

class Global_

Hierarchy

  • class \PhpParser\Node\Stmt\Global_ extends \Node\Stmt

Expanded class hierarchy of Global_

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php, line 7

Namespace

PhpParser\Node\Stmt
View source
class Global_ extends Node\Stmt {
    
    /** @var Node\Expr[] Variables */
    public array $vars;
    
    /**
     * Constructs a global variables list node.
     *
     * @param Node\Expr[] $vars Variables to unset
     * @param array<string, mixed> $attributes Additional attributes
     */
    public function __construct(array $vars, array $attributes = []) {
        $this->attributes = $attributes;
        $this->vars = $vars;
    }
    public function getSubNodeNames() : array {
        return [
            'vars',
        ];
    }
    public function getType() : string {
        return 'Stmt_Global';
    }

}

Members

Title Sort descending Modifiers Object type Summary
Global_::$vars public property @var Node\Expr[] Variables
Global_::getSubNodeNames public function
Global_::getType public function
Global_::__construct public function Constructs a global variables list node.

API Navigation

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