aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/Result.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Execution/Result.php')
-rw-r--r--src/WebAssembly/Execution/Result.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WebAssembly/Execution/Result.php b/src/WebAssembly/Execution/Result.php
new file mode 100644
index 0000000..50e543c
--- /dev/null
+++ b/src/WebAssembly/Execution/Result.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Execution;
+
+abstract readonly class Result
+{
+ /**
+ * @param list<int|float|Ref> $values
+ */
+ final public static function Values(array $values): Results\Values
+ {
+ return new Results\Values($values);
+ }
+
+ final public static function Trap(): Results\Trap
+ {
+ return new Results\Trap();
+ }
+}