1<?php
2
3/** @generate-function-entries */
4
5function variant_set(variant $variant, mixed $value): void {}
6
7function variant_add(mixed $left, mixed $right): variant {}
8
9function variant_cat(mixed $left, mixed $right): variant {}
10
11function variant_sub(mixed $left, mixed $right): variant {}
12
13function variant_mul(mixed $left, mixed $right): variant {}
14
15function variant_and(mixed $left, mixed $right): variant {}
16
17function variant_div(mixed $left, mixed $right): variant {}
18
19function variant_eqv(mixed $left, mixed $right): variant {}
20
21function variant_idiv(mixed $left, mixed $right): variant {}
22
23function variant_imp(mixed $left, mixed $right): variant {}
24
25function variant_mod(mixed $left, mixed $right): variant {}
26
27function variant_or(mixed $left, mixed $right): variant {}
28
29function variant_pow(mixed $left, mixed $right): variant {}
30
31function variant_xor(mixed $left, mixed $right): variant {}
32
33function variant_abs(mixed $value): variant {}
34
35function variant_fix(mixed $value): variant {}
36
37function variant_int(mixed $value): variant {}
38
39function variant_neg(mixed $value): variant {}
40
41function variant_not(mixed $value): variant {}
42
43function variant_round(mixed $value, int $decimals): ?variant {}
44
45function variant_cmp(mixed $left, mixed $right, int $locale_id = LOCALE_SYSTEM_DEFAULT, int $flags = 0): int {}
46
47function variant_date_to_timestamp(variant $variant): ?int {}
48
49function variant_date_from_timestamp(int $timestamp): variant {}
50
51function variant_get_type(variant $variant): int {}
52
53function variant_set_type(variant $variant, int $type): void {}
54
55function variant_cast(variant $variant, int $type): variant {}
56
57function com_get_active_object(string $prog_id, ?int $codepage = null): variant {}
58
59function com_create_guid(): string|false {}
60
61function com_event_sink(variant $variant, object $sink_object, array|string|null $sink_interface = null): bool {}
62
63function com_print_typeinfo(variant|string $variant, ?string $dispatch_interface = null, bool $display_sink = false): bool {}
64
65function com_message_pump(int $timeout_milliseconds  = 0): bool {}
66
67function com_load_typelib(string $typelib, bool $case_insensitive = true): bool {}
68
69class variant
70{
71    public function __construct(mixed $value = null, int $type = VT_EMPTY, int $codepage = CP_ACP) {}
72}
73
74class com
75{
76    public function __construct(string $module_name, array|string|null $server_name = null, int $codepage = CP_ACP, string $typelib = "") {}
77}
78
79#if HAVE_MSCOREE_H
80class dotnet
81{
82    public function __construct(string $assembly_name, string $datatype_name, int $codepage = CP_ACP) {}
83}
84#endif
85
86final class com_exception extends exception
87{
88}
89