2021-09-03 17:18:40 +02:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2021-09-12 21:59:26 +02:00
|
|
|
namespace PhpParser\Node;
|
2021-09-03 17:18:40 +02:00
|
|
|
|
2021-09-12 21:59:26 +02:00
|
|
|
use PhpParser\NodeAbstract;
|
2021-09-03 17:18:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents the "..." in "foo(...)" of the first-class callable syntax.
|
|
|
|
*/
|
2021-09-12 21:59:26 +02:00
|
|
|
class VariadicPlaceholder extends NodeAbstract {
|
2021-09-03 17:18:40 +02:00
|
|
|
/**
|
|
|
|
* Create a variadic argument placeholder (first-class callable syntax).
|
|
|
|
*
|
|
|
|
* @param array $attributes Additional attributes
|
|
|
|
*/
|
|
|
|
public function __construct(array $attributes = []) {
|
|
|
|
$this->attributes = $attributes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getType(): string {
|
2021-09-12 21:59:26 +02:00
|
|
|
return 'VariadicPlaceholder';
|
2021-09-03 17:18:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubNodeNames(): array {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|