Debian Codegraph @

vendor/mck89/peast/lib/Peast/Syntax/Node/PrivateIdentifier.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 * A node that represents a private identifier.
14 *
15 * @author Marco Marchiò <[email protected]>
16 */
17 class PrivateIdentifier extends Node
18 {
19 /**
20 * Map of node properties
21 *
22 * @var array
23 */
24 protected $propertiesMap = array(
25 "name" => false
26 );
27
28 /**
29 * The identifier's name
30 *
31 * @var string
32 */
33 protected $name;
34
35 /**
36 * Returns the identifier's name
37 *
38 * @return string
39 */
40 public function getName()
41 {
42 return $this->name;
43 }
44
45 /**
46 * Sets the identifier's name
47 *
48 * @param string $name The name to set
49 *
50 * @return $this
51 */
52 public function setName($name)
53 {
54 $this->name = $name;
55 return $this;
56 }
57 }