1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Stmt;
7 class Finally_ extends Node\Stmt
9 /** @var Node\Stmt[] Statements */
13 * Constructs a finally node.
15 * @param Node\Stmt[] $stmts Statements
16 * @param array $attributes Additional attributes
18 public function __construct(array $stmts = [], array $attributes = []) {
19 parent::__construct($attributes);
20 $this->stmts = $stmts;
23 public function getSubNodeNames() : array {
27 public function getType() : string {
28 return 'Stmt_Finally';