-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext-wasm.stubs.php
38 lines (25 loc) · 977 Bytes
/
ext-wasm.stubs.php
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
36
37
38
<?php
// Stubs for ext-wasm
namespace Wasm {
class WasmInstance {
public static function fromBuilder(\Wasm\InstanceBuilder $builder): \Wasm\WasmInstance {}
public function __call(string $method, array $attributes): mixed {}
public function __get(string $accessor): mixed {}
public function __set(string $accessor, mixed $value): void {}
}
class InstanceBuilder {
public static function fromWat(string $wat): \Wasm\InstanceBuilder {}
public function import(array $imports): void {}
public function build(): \Wasm\WasmInstance {}
}
class Imports {
public static function create(): self {}
public static function define(string $namespace, string $variable, \Wasm\Type\Global $value): void {}
}
}
namespace Wasm\Type {
class Global {
public static function mutable(mixed $value): self {}
public static function immutable(mixed $value): self {}
}
}