1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDocParser\Ast\ConstExpr;
4:
5: use PHPStan\PhpDocParser\Ast\NodeAttributes;
6: use function implode;
7:
8: class ConstExprArrayNode implements ConstExprNode
9: {
10:
11: use NodeAttributes;
12:
13: /** @var ConstExprArrayItemNode[] */
14: public $items;
15:
16: /**
17: * @param ConstExprArrayItemNode[] $items
18: */
19: public function __construct(array $items)
20: {
21: $this->items = $items;
22: }
23:
24:
25: public function __toString(): string
26: {
27: return '[' . implode(', ', $this->items) . ']';
28: }
29:
30: }
31: