Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7435939
ImportSpecifier.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ImportSpecifier.php
View Options
<?php
/**
* This file is part of the Peast package
*
* (c) Marco Marchiò <marco.mm89@gmail.com>
*
* For the full copyright and license information refer to the LICENSE file
* distributed with this source code
*/
namespace
Peast\Syntax\Node
;
/**
* A node that represents a specifier in an import declaration.
* For example "{a}" in: import {a} from "test"
*
* @author Marco Marchiò <marco.mm89@gmail.com>
*/
class
ImportSpecifier
extends
ModuleSpecifier
{
/**
* Map of node properties
*
* @var array
*/
protected
$propertiesMap
=
array
(
"imported"
=>
true
);
/**
* Imported identifier
*
* @var Identifier|StringLiteral
*/
protected
$imported
;
/**
* Returns the imported identifier
*
* @return Identifier|StringLiteral
*/
public
function
getImported
()
{
return
$this
->
imported
;
}
/**
* Sets the imported identifier
*
* @param Identifier|StringLiteral $imported Imported identifier
*
* @return $this
*/
public
function
setImported
(
$imported
)
{
$this
->
assertType
(
$imported
,
array
(
"Identifier"
,
"StringLiteral"
));
$this
->
imported
=
$imported
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 13:11 (1 h, 40 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
10/c4/1f78e880c23cea68cd893e74d3e0
Default Alt Text
ImportSpecifier.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment