No Description

AttributeGroup.php 648B

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