AttributeGroup.php 647 B

123456789101112131415161718192021222324252627
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Node;
  3. use PhpParser\NodeAbstract;
  4. class AttributeGroup extends NodeAbstract {
  5. /** @var Attribute[] Attributes */
  6. public array $attrs;
  7. /**
  8. * @param Attribute[] $attrs PHP attributes
  9. * @param array<string, mixed> $attributes Additional node attributes
  10. */
  11. public function __construct(array $attrs, array $attributes = []) {
  12. $this->attributes = $attributes;
  13. $this->attrs = $attrs;
  14. }
  15. public function getSubNodeNames(): array {
  16. return ['attrs'];
  17. }
  18. public function getType(): string {
  19. return 'AttributeGroup';
  20. }
  21. }