3 namespace PhpParser\Node;
5 use PhpParser\NodeAbstract;
7 class NullableType extends NodeAbstract
9 /** @var string|Name Type */
13 * Constructs a nullable type (wrapping another type).
15 * @param string|Name $type Type
16 * @param array $attributes Additional attributes
18 public function __construct($type, array $attributes = array()) {
19 parent::__construct($attributes);
23 public function getSubNodeNames() {