class Else_
Hierarchy
- class \PhpParser\Node\Stmt\Else_ extends \Node\Stmt
Expanded class hierarchy of Else_
1 file declares its use of Else_
- ParserAbstract.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Else_.php, line 7
Namespace
PhpParser\Node\StmtView source
class Else_ extends Node\Stmt {
/** @var Node\Stmt[] Statements */
public array $stmts;
/**
* Constructs an else node.
*
* @param Node\Stmt[] $stmts Statements
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $stmts = [], array $attributes = []) {
$this->attributes = $attributes;
$this->stmts = $stmts;
}
public function getSubNodeNames() : array {
return [
'stmts',
];
}
public function getType() : string {
return 'Stmt_Else';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Else_::$stmts | public | property | @var Node\Stmt[] Statements |
Else_::getSubNodeNames | public | function | |
Else_::getType | public | function | |
Else_::__construct | public | function | Constructs an else node. |