4bc5dd25cff1461e53f98d810b4d4b64118a3209
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / StaticVar.php
1 <?php
2
3 namespace PhpParser\Node\Stmt;
4
5 use PhpParser\Node;
6
7 class StaticVar extends Node\Stmt
8 {
9     /** @var string Name */
10     public $name;
11     /** @var null|Node\Expr Default value */
12     public $default;
13
14     /**
15      * Constructs a static variable node.
16      *
17      * @param string         $name       Name
18      * @param null|Node\Expr $default    Default value
19      * @param array          $attributes Additional attributes
20      */
21     public function __construct($name, Node\Expr $default = null, array $attributes = array()) {
22         parent::__construct($attributes);
23         $this->name = $name;
24         $this->default = $default;
25     }
26
27     public function getSubNodeNames() {
28         return array('name', 'default');
29     }
30 }