Version 1
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / NullableType.php
diff --git a/vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php b/vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php
new file mode 100644 (file)
index 0000000..d887b32
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace PhpParser\Node;
+
+use PhpParser\NodeAbstract;
+
+class NullableType extends NodeAbstract
+{
+    /** @var string|Name Type */
+    public $type;
+
+    /**
+     * Constructs a nullable type (wrapping another type).
+     *
+     * @param string|Name $type       Type
+     * @param array       $attributes Additional attributes
+     */
+    public function __construct($type, array $attributes = array()) {
+        parent::__construct($attributes);
+        $this->type = $type;
+    }
+
+    public function getSubNodeNames() {
+        return array('type');
+    }
+}