Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / NullableType.php
1 <?php
2
3 namespace PhpParser\Node;
4
5 use PhpParser\NodeAbstract;
6
7 class NullableType extends NodeAbstract
8 {
9     /** @var string|Name Type */
10     public $type;
11
12     /**
13      * Constructs a nullable type (wrapping another type).
14      *
15      * @param string|Name $type       Type
16      * @param array       $attributes Additional attributes
17      */
18     public function __construct($type, array $attributes = array()) {
19         parent::__construct($attributes);
20         $this->type = $type;
21     }
22
23     public function getSubNodeNames() {
24         return array('type');
25     }
26 }