VariadicPlaceholder.php 653 B

123456789101112131415161718192021222324252627
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Node;
  3. use PhpParser\NodeAbstract;
  4. /**
  5. * Represents the "..." in "foo(...)" of the first-class callable syntax.
  6. */
  7. class VariadicPlaceholder extends NodeAbstract {
  8. /**
  9. * Create a variadic argument placeholder (first-class callable syntax).
  10. *
  11. * @param array<string, mixed> $attributes Additional attributes
  12. */
  13. public function __construct(array $attributes = []) {
  14. $this->attributes = $attributes;
  15. }
  16. public function getType(): string {
  17. return 'VariadicPlaceholder';
  18. }
  19. public function getSubNodeNames(): array {
  20. return [];
  21. }
  22. }