aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Modules/ExportDesc.php
blob: 06e67bac3b295ee849352b5c74a619669540365a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Structure\Modules;

abstract readonly class ExportDesc
{
    final public static function Func(int $func): ExportDescs\Func
    {
        return new ExportDescs\Func($func);
    }

    final public static function Table(int $table): ExportDescs\Table
    {
        return new ExportDescs\Table($table);
    }

    final public static function Mem(int $mem): ExportDescs\Mem
    {
        return new ExportDescs\Mem($mem);
    }

    final public static function Global(int $global): ExportDescs\Global_
    {
        return new ExportDescs\Global_($global);
    }
}