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