mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 09:37:21 +01:00
27 lines
636 B
PHP
27 lines
636 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace PhpParser\Node\Expr;
|
||
|
|
||
|
use PhpParser\Node\Expr;
|
||
|
|
||
|
/**
|
||
|
* Represents the "..." in "foo(...)" of the first-class callable syntax.
|
||
|
*/
|
||
|
class VariadicPlaceholder extends Expr {
|
||
|
/**
|
||
|
* 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 {
|
||
|
return 'Expr_VariadicPlaceholder';
|
||
|
}
|
||
|
|
||
|
public function getSubNodeNames(): array {
|
||
|
return [];
|
||
|
}
|
||
|
}
|