class Unset_
Same name in this branch
- 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\StmtView 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. |