aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/Result.php
blob: 50e543c1e726ca7927ca72ea51b07e94cfc333f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Execution;

abstract readonly class Result
{
    /**
     * @param list<int|float|Ref> $values
     */
    final public static function Values(array $values): Results\Values
    {
        return new Results\Values($values);
    }

    final public static function Trap(): Results\Trap
    {
        return new Results\Trap();
    }
}