php-parser/lib/PhpParser/Node/Expr/VariadicPlaceholder.php

27 lines
636 B
PHP
Raw Normal View History

<?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 [];
}
}