-<?php
+<?php declare(strict_types=1);
namespace PhpParser\Node\Stmt;
* @param int $type Type of group use
* @param array $attributes Additional attributes
*/
- public function __construct(Name $prefix, array $uses, $type = Use_::TYPE_NORMAL, array $attributes = array()) {
+ public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attributes = []) {
parent::__construct($attributes);
$this->type = $type;
$this->prefix = $prefix;
$this->uses = $uses;
}
- public function getSubNodeNames() {
- return array('type', 'prefix', 'uses');
+ public function getSubNodeNames() : array {
+ return ['type', 'prefix', 'uses'];
+ }
+
+ public function getType() : string {
+ return 'Stmt_GroupUse';
}
}