aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Modules/Module.php
blob: a6ce2c8be995255e33ffb2662d3e259648ae59eb (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
29
30
31
32
33
34
35
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules;

use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\FuncType;

final readonly class Module
{
    /**
     * @param list<FuncType> $types
     * @param list<Func> $funcs
     * @param list<Table> $tables
     * @param list<Mem> $mems
     * @param list<Global_> $globals
     * @param list<Elem> $elems
     * @param list<Data> $datas
     * @param list<Import> $imports
     * @param list<Export> $exports
     */
    public function __construct(
        public array $types,
        public array $funcs,
        public array $tables,
        public array $mems,
        public array $globals,
        public array $elems,
        public array $datas,
        public ?Start $start,
        public array $imports,
        public array $exports,
    ) {
    }
}