Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Namespace_.php
index 444855c398182ffaf157200ad53c034f8e86a3d3..f113998d62d832719ecfae57578b81d117971fe6 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 
 namespace PhpParser\Node\Stmt;
 
@@ -12,23 +12,27 @@ class Namespace_ extends Node\Stmt
 
     /** @var null|Node\Name Name */
     public $name;
-    /** @var Node[] Statements */
+    /** @var Node\Stmt[] Statements */
     public $stmts;
 
     /**
      * Constructs a namespace node.
      *
-     * @param null|Node\Name $name       Name
-     * @param null|Node[]    $stmts      Statements
-     * @param array          $attributes Additional attributes
+     * @param null|Node\Name   $name       Name
+     * @param null|Node\Stmt[] $stmts      Statements
+     * @param array            $attributes Additional attributes
      */
-    public function __construct(Node\Name $name = null, $stmts = array(), array $attributes = array()) {
+    public function __construct(Node\Name $name = null, $stmts = [], array $attributes = []) {
         parent::__construct($attributes);
         $this->name = $name;
         $this->stmts = $stmts;
     }
 
-    public function getSubNodeNames() {
-        return array('name', 'stmts');
+    public function getSubNodeNames() : array {
+        return ['name', 'stmts'];
+    }
+    
+    public function getType() : string {
+        return 'Stmt_Namespace';
     }
 }