Page MenuHomeWickedGov Phorge

ArrayShapeUnsealedTypeNode.php
No OneTemporary

Size
651 B
Referenced Files
None
Subscribers
None

ArrayShapeUnsealedTypeNode.php

<?php declare(strict_types = 1);
namespace PHPStan\PhpDocParser\Ast\Type;
use PHPStan\PhpDocParser\Ast\Node;
use PHPStan\PhpDocParser\Ast\NodeAttributes;
use function sprintf;
class ArrayShapeUnsealedTypeNode implements Node
{
use NodeAttributes;
public TypeNode $valueType;
public ?TypeNode $keyType = null;
public function __construct(TypeNode $valueType, ?TypeNode $keyType)
{
$this->valueType = $valueType;
$this->keyType = $keyType;
}
public function __toString(): string
{
if ($this->keyType !== null) {
return sprintf('<%s, %s>', $this->keyType, $this->valueType);
}
return sprintf('<%s>', $this->valueType);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 09:35 (13 h, 34 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bc/cb/e7ca51ed663a23b01a44a72fabaf
Default Alt Text
ArrayShapeUnsealedTypeNode.php (651 B)

Event Timeline