Page MenuHomeWickedGov Phorge

ImportSpecifier.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

ImportSpecifier.php

<?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

Mime Type
text/x-php
Expires
Sun, Nov 22, 13:24 (3 h, 1 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
10/c4/1f78e880c23cea68cd893e74d3e0
Default Alt Text
ImportSpecifier.php (1 KB)

Event Timeline