<?php

declare (strict_types=1);
namespace Matomo\Dependencies\ApiReference\PhpParser\Node\Stmt;

use Matomo\Dependencies\ApiReference\PhpParser\Node\Name;
use Matomo\Dependencies\ApiReference\PhpParser\Node\Stmt;
use Matomo\Dependencies\ApiReference\PhpParser\Node\UseItem;
class GroupUse extends Stmt
{
    /**
     * @var Use_::TYPE_* Type of group use
     */
    public $type;
    /** @var Name Prefix for uses */
    public $prefix;
    /** @var UseItem[] Uses */
    public $uses;
    /**
     * Constructs a group use node.
     *
     * @param Name $prefix Prefix for uses
     * @param UseItem[] $uses Uses
     * @param Use_::TYPE_* $type Type of group use
     * @param array<string, mixed> $attributes Additional attributes
     */
    public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attributes = [])
    {
        $this->attributes = $attributes;
        $this->type = $type;
        $this->prefix = $prefix;
        $this->uses = $uses;
    }
    public function getSubNodeNames() : array
    {
        return ['type', 'prefix', 'uses'];
    }
    public function getType() : string
    {
        return 'Stmt_GroupUse';
    }
}
