<?php

declare (strict_types=1);
namespace GuardDog\Vendor\phpDocumentor\Reflection\PseudoTypes;

use GuardDog\Vendor\phpDocumentor\Reflection\PseudoType;
use GuardDog\Vendor\phpDocumentor\Reflection\Type;
use GuardDog\Vendor\phpDocumentor\Reflection\Types\Object_;
use function implode;
/** @psalm-immutable */
final class ObjectShape implements PseudoType
{
    /** @var ObjectShapeItem[] */
    private $items;
    public function __construct(ObjectShapeItem ...$items)
    {
        $this->items = $items;
    }
    /**
     * @return ObjectShapeItem[]
     */
    public function getItems(): array
    {
        return $this->items;
    }
    public function underlyingType(): Type
    {
        return new Object_();
    }
    public function __toString(): string
    {
        return 'object{' . implode(', ', $this->items) . '}';
    }
}
