Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7449567
ConditionalTypeNode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
828 B
Referenced Files
None
Subscribers
None
ConditionalTypeNode.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PHPStan\PhpDocParser\Ast\Type
;
use
PHPStan\PhpDocParser\Ast\NodeAttributes
;
use
function
sprintf
;
class
ConditionalTypeNode
implements
TypeNode
{
use
NodeAttributes
;
public
TypeNode
$subjectType
;
public
TypeNode
$targetType
;
public
TypeNode
$if
;
public
TypeNode
$else
;
public
bool
$negated
;
public
function
__construct
(
TypeNode
$subjectType
,
TypeNode
$targetType
,
TypeNode
$if
,
TypeNode
$else
,
bool
$negated
)
{
$this
->
subjectType
=
$subjectType
;
$this
->
targetType
=
$targetType
;
$this
->
if
=
$if
;
$this
->
else
=
$else
;
$this
->
negated
=
$negated
;
}
public
function
__toString
():
string
{
return
sprintf
(
'(%s %s %s ? %s : %s)'
,
$this
->
subjectType
,
$this
->
negated
?
'is not'
:
'is'
,
$this
->
targetType
,
$this
->
if
,
$this
->
else
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 20:17 (1 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
da/95/cfe89a8e57f891245902147d48a8
Default Alt Text
ConditionalTypeNode.php (828 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment