Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7428657
ArrayShapeUnsealedTypeNode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
ArrayShapeUnsealedTypeNode.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment