Файл: gapps/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php
Строк: 24
<?php
namespace PhpParserNodeStmt;
use PhpParserNode;
class Switch_ extends NodeStmt
{
/** @var NodeExpr Condition */
public $cond;
/** @var Case_[] Case list */
public $cases;
/**
* Constructs a case node.
*
* @param NodeExpr $cond Condition
* @param Case_[] $cases Case list
* @param array $attributes Additional attributes
*/
public function __construct(NodeExpr $cond, array $cases, array $attributes = array()) {
parent::__construct($attributes);
$this->cond = $cond;
$this->cases = $cases;
}
public function getSubNodeNames() {
return array('cond', 'cases');
}
}