diff options
Diffstat (limited to 'src/WebAssembly/Execution/Extern.php')
| -rw-r--r-- | src/WebAssembly/Execution/Extern.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/WebAssembly/Execution/Extern.php b/src/WebAssembly/Execution/Extern.php new file mode 100644 index 0000000..dacfad1 --- /dev/null +++ b/src/WebAssembly/Execution/Extern.php @@ -0,0 +1,28 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Execution; + +abstract readonly class Extern +{ + final public static function Func(FuncInst $func): Externs\Func + { + return new Externs\Func($func); + } + + final public static function Table(TableInst $table): Externs\Table + { + return new Externs\Table($table); + } + + final public static function Mem(MemInst $mem): Externs\Mem + { + return new Externs\Mem($mem); + } + + final public static function Global_(GlobalInst $global): Externs\Global_ + { + return new Externs\Global_($global); + } +} |
