Файл: vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php
Строк: 29
<?php declare(strict_types=1);
namespace PhpParserNodeStmt;
use PhpParserNode;
class ElseIf_ extends NodeStmt
{
/** @var NodeExpr Condition */
public $cond;
/** @var NodeStmt[] Statements */
public $stmts;
/**
* Constructs an elseif node.
*
* @param NodeExpr $cond Condition
* @param NodeStmt[] $stmts Statements
* @param array $attributes Additional attributes
*/
public function __construct(NodeExpr $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';
}
}