aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Modules/Elem.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Structure/Modules/Elem.php')
-rw-r--r--src/WebAssembly/Structure/Modules/Elem.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WebAssembly/Structure/Modules/Elem.php b/src/WebAssembly/Structure/Modules/Elem.php
new file mode 100644
index 0000000..1b9831f
--- /dev/null
+++ b/src/WebAssembly/Structure/Modules/Elem.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType;
+
+final readonly class Elem
+{
+ /**
+ * @param list<list<Instr>> $init
+ */
+ public function __construct(
+ public RefType $type,
+ public array $init,
+ public ElemMode $mode,
+ ) {
+ }
+}