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 ObjectShapeNode implements TypeNode
9: {
10:
11: use NodeAttributes;
12:
13: /** @var ObjectShapeItemNode[] */
14: public $items;
15:
16: public function __construct(array $items)
17: {
18: $this->items = $items;
19: }
20:
21: public function __toString(): string
22: {
23: $items = $this->items;
24:
25: return 'object{' . implode(', ', $items) . '}';
26: }
27:
28: }
29: