Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Else_.php
index c91a1484f6a48a08ecab6844564718e94c9e191e..c7015c69dc93073898f4a06ed0e5f97ba68899d4 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -6,21 +6,25 @@ use PhpParser\Node;
 
 class Else_ extends Node\Stmt
 {
-    /** @var Node[] Statements */
+    /** @var Node\Stmt[] Statements */
     public $stmts;
 
     /**
      * Constructs an else node.
      *
-     * @param Node[] $stmts      Statements
-     * @param array  $attributes Additional attributes
+     * @param Node\Stmt[] $stmts      Statements
+     * @param array       $attributes Additional attributes
      */
-    public function __construct(array $stmts = array(), array $attributes = array()) {
+    public function __construct(array $stmts = [], array $attributes = []) {
         parent::__construct($attributes);
         $this->stmts = $stmts;
     }
 
-    public function getSubNodeNames() {
-        return array('stmts');
+    public function getSubNodeNames() : array {
+        return ['stmts'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_Else';
     }
 }