Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7450844
TypeAliasImportTagValueNode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
817 B
Referenced Files
None
Subscribers
None
TypeAliasImportTagValueNode.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PHPStan\PhpDocParser\Ast\PhpDoc
;
use
PHPStan\PhpDocParser\Ast\NodeAttributes
;
use
PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode
;
use
function
trim
;
class
TypeAliasImportTagValueNode
implements
PhpDocTagValueNode
{
use
NodeAttributes
;
public
string
$importedAlias
;
public
IdentifierTypeNode
$importedFrom
;
public
?
string
$importedAs
=
null
;
public
function
__construct
(
string
$importedAlias
,
IdentifierTypeNode
$importedFrom
,
?
string
$importedAs
)
{
$this
->
importedAlias
=
$importedAlias
;
$this
->
importedFrom
=
$importedFrom
;
$this
->
importedAs
=
$importedAs
;
}
public
function
__toString
():
string
{
return
trim
(
"{$this->importedAlias} from {$this->importedFrom}"
.
(
$this
->
importedAs
!==
null
?
" as {$this->importedAs}"
:
''
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 21:07 (2 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e3/9b/032c3b894113b07b1fd371272687
Default Alt Text
TypeAliasImportTagValueNode.php (817 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment