Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7450065
IntersectionTypeNode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
IntersectionTypeNode.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PHPStan\PhpDocParser\Ast\Type
;
use
PHPStan\PhpDocParser\Ast\NodeAttributes
;
use
function
array_map
;
use
function
implode
;
class
IntersectionTypeNode
implements
TypeNode
{
use
NodeAttributes
;
/** @var TypeNode[] */
public
array
$types
;
/**
* @param TypeNode[] $types
*/
public
function
__construct
(
array
$types
)
{
$this
->
types
=
$types
;
}
public
function
__toString
():
string
{
return
'('
.
implode
(
' & '
,
array_map
(
static
function
(
TypeNode
$type
):
string
{
if
(
$type
instanceof
NullableTypeNode
)
{
return
'('
.
$type
.
')'
;
}
return
(
string
)
$type
;
},
$this
->
types
))
.
')'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 20:40 (1 d, 23 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/f6/f8e23e90120b811fec383f852b77
Default Alt Text
IntersectionTypeNode.php (665 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment