aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Types/ValType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Structure/Types/ValType.php')
-rw-r--r--src/Structure/Types/ValType.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Structure/Types/ValType.php b/src/Structure/Types/ValType.php
new file mode 100644
index 0000000..58bf32c
--- /dev/null
+++ b/src/Structure/Types/ValType.php
@@ -0,0 +1,23 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Types;
+
+abstract readonly class ValType
+{
+ final public static function NumType(NumType $type): ValTypes\NumType
+ {
+ return new ValTypes\NumType($type);
+ }
+
+ final public static function VecType(VecType $type): ValTypes\VecType
+ {
+ return new ValTypes\VecType($type);
+ }
+
+ final public static function RefType(RefType $type): ValTypes\RefType
+ {
+ return new ValTypes\RefType($type);
+ }
+}