AttributeGroup.php 648 B

1234567891011121314151617181920212223242526272829
  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. }