Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7426145
ExportAllDeclaration.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
ExportAllDeclaration.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 an "export all" declaration.
* For example: export * from "test"
*
* @author Marco Marchiò <marco.mm89@gmail.com>
*/
class
ExportAllDeclaration
extends
Node
implements
ModuleDeclaration
{
/**
* Map of node properties
*
* @var array
*/
protected
$propertiesMap
=
array
(
"source"
=>
true
,
"exported"
=>
true
);
/**
* The export source
*
* @var Literal
*/
protected
$source
;
/**
* The exported name
*
* @var Identifier|StringLiteral
*/
protected
$exported
;
/**
* Returns the export source
*
* @return Literal
*/
public
function
getSource
()
{
return
$this
->
source
;
}
/**
* Sets the export source
*
* @param Literal $source Export source
*
* @return $this
*/
public
function
setSource
(
Literal
$source
)
{
$this
->
source
=
$source
;
return
$this
;
}
/**
* Returns the exported name
*
* @return Identifier|StringLiteral
*/
public
function
getExported
()
{
return
$this
->
exported
;
}
/**
* Sets the exported name
*W
* @param Identifier|StringLiteral $exported Exported name
*
* @return $this
*/
public
function
setExported
(
$exported
)
{
$this
->
assertType
(
$exported
,
array
(
"Identifier"
,
"StringLiteral"
),
true
);
$this
->
exported
=
$exported
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 08:17 (19 h, 6 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b0/56/1887e54c6b212fce69d97913a100
Default Alt Text
ExportAllDeclaration.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment