Debian Codegraph @

vendor/mck89/peast/lib/Peast/Syntax/Node/ModuleSpecifier.php

raw
1 <?php
2 /**
3 * This file is part of the Peast package
4 *
5 * (c) Marco Marchiò <[email protected]>
6 *
7 * For the full copyright and license information refer to the LICENSE file
8 * distributed with this source code
9 */
10 namespace Peast\Syntax\Node;
11
12 /**
13 * Abstract class that export and import specifiers nodes must extend.
14 *
15 * @author Marco Marchiò <[email protected]>
16 *
17 * @abstract
18 */
19 abstract class ModuleSpecifier extends Node
20 {
21 /**
22 * Map of node properties
23 *
24 * @var array
25 */
26 protected $propertiesMap = array(
27 "local" => true
28 );
29
30 /**
31 * Local identifier
32 *
33 * @var Identifier|StringLiteral
34 */
35 protected $local;
36
37 /**
38 * Returns the local identifier
39 *
40 * @return Identifier|StringLiteral
41 */
42 public function getLocal()
43 {
44 return $this->local;
45 }
46
47 /**
48 * Sets the local identifier
49 *
50 * @param Identifier|StringLiteral $local Local identifier
51 *
52 * @return $this
53 */
54 public function setLocal($local)
55 {
56 $this->assertType($local, array("Identifier", "StringLiteral"));
57 $this->local = $local;
58 return $this;
59 }
60 }