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

Breadcrumb

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

class Unset_

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php \PhpParser\Node\Expr\Cast\Unset_

Hierarchy

  • class \PhpParser\Node\Stmt\Unset_ extends \Node\Stmt

Expanded class hierarchy of Unset_

File

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

Namespace

PhpParser\Node\Stmt
View source
class Unset_ extends Node\Stmt {
    
    /** @var Node\Expr[] Variables to unset */
    public array $vars;
    
    /**
     * Constructs an unset 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_Unset';
    }

}

Members

Title Sort descending Modifiers Object type Summary
Unset_::$vars public property @var Node\Expr[] Variables to unset
Unset_::getSubNodeNames public function
Unset_::getType public function
Unset_::__construct public function Constructs an unset node.

API Navigation

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