class ElseIf_
Hierarchy
- class \PhpParser\Node\Stmt\ElseIf_ extends \Node\Stmt
Expanded class hierarchy of ElseIf_
2 files declare their use of ElseIf_
- CyclomaticComplexityCalculatingVisitor.php in vendor/
sebastian/ complexity/ src/ Visitor/ CyclomaticComplexityCalculatingVisitor.php - ParserAbstract.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ ElseIf_.php, line 7
Namespace
PhpParser\Node\StmtView source
class ElseIf_ extends Node\Stmt {
/** @var Node\Expr Condition */
public Node\Expr $cond;
/** @var Node\Stmt[] Statements */
public array $stmts;
/**
* Constructs an elseif node.
*
* @param Node\Expr $cond Condition
* @param Node\Stmt[] $stmts Statements
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Node\Expr $cond, array $stmts = [], array $attributes = []) {
$this->attributes = $attributes;
$this->cond = $cond;
$this->stmts = $stmts;
}
public function getSubNodeNames() : array {
return [
'cond',
'stmts',
];
}
public function getType() : string {
return 'Stmt_ElseIf';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ElseIf_::$cond | public | property | @var Node\Expr Condition |
ElseIf_::$stmts | public | property | @var Node\Stmt[] Statements |
ElseIf_::getSubNodeNames | public | function | |
ElseIf_::getType | public | function | |
ElseIf_::__construct | public | function | Constructs an elseif node. |