1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Expr;
5 use PhpParser\Node\Expr;
7 class List_ extends Expr
9 /** @var (ArrayItem|null)[] List of items to assign to */
13 * Constructs a list() destructuring node.
15 * @param (ArrayItem|null)[] $items List of items to assign to
16 * @param array $attributes Additional attributes
18 public function __construct(array $items, array $attributes = []) {
19 parent::__construct($attributes);
20 $this->items = $items;
23 public function getSubNodeNames() : array {
27 public function getType() : string {