Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Do_.php
index dd4c6c843626bfbd6f2038a86b6be4544b6e2487..778c73983b744cb9ddc4217d418b772e6a7a3f0c 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -6,25 +6,29 @@ use PhpParser\Node;
 
 class Do_ extends Node\Stmt
 {
+    /** @var Node\Stmt[] Statements */
+    public $stmts;
     /** @var Node\Expr Condition */
     public $cond;
-    /** @var Node[] Statements */
-    public $stmts;
 
     /**
      * Constructs a do while node.
      *
-     * @param Node\Expr $cond       Condition
-     * @param Node[]    $stmts      Statements
-     * @param array     $attributes Additional attributes
+     * @param Node\Expr   $cond       Condition
+     * @param Node\Stmt[] $stmts      Statements
+     * @param array       $attributes Additional attributes
      */
-    public function __construct(Node\Expr $cond, array $stmts = array(), array $attributes = array()) {
+    public function __construct(Node\Expr $cond, array $stmts = [], array $attributes = []) {
         parent::__construct($attributes);
         $this->cond = $cond;
         $this->stmts = $stmts;
     }
 
-    public function getSubNodeNames() {
-        return array('cond', 'stmts');
+    public function getSubNodeNames() : array {
+        return ['stmts', 'cond'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_Do';
     }
 }