c91a1484f6a48a08ecab6844564718e94c9e191e
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Else_.php
1 <?php
2
3 namespace PhpParser\Node\Stmt;
4
5 use PhpParser\Node;
6
7 class Else_ extends Node\Stmt
8 {
9     /** @var Node[] Statements */
10     public $stmts;
11
12     /**
13      * Constructs an else node.
14      *
15      * @param Node[] $stmts      Statements
16      * @param array  $attributes Additional attributes
17      */
18     public function __construct(array $stmts = array(), array $attributes = array()) {
19         parent::__construct($attributes);
20         $this->stmts = $stmts;
21     }
22
23     public function getSubNodeNames() {
24         return array('stmts');
25     }
26 }