Files
apimacro/vendor/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php

28 lines
647 B
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node;
use PhpParser\NodeAbstract;
2024-05-17 12:24:19 +00:00
class AttributeGroup extends NodeAbstract {
2024-05-07 12:17:25 +02:00
/** @var Attribute[] Attributes */
2024-05-17 12:24:19 +00:00
public array $attrs;
2024-05-07 12:17:25 +02:00
/**
* @param Attribute[] $attrs PHP attributes
2024-05-17 12:24:19 +00:00
* @param array<string, mixed> $attributes Additional node attributes
2024-05-07 12:17:25 +02:00
*/
public function __construct(array $attrs, array $attributes = []) {
$this->attributes = $attributes;
$this->attrs = $attrs;
}
2024-05-17 12:24:19 +00:00
public function getSubNodeNames(): array {
2024-05-07 12:17:25 +02:00
return ['attrs'];
}
2024-05-17 12:24:19 +00:00
public function getType(): string {
2024-05-07 12:17:25 +02:00
return 'AttributeGroup';
}
}