blob: 58bf32c1ac03cff10e7a4b3149da4bfab17227b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\Structure\Types;
abstract readonly class ValType
{
final public static function NumType(NumType $type): ValTypes\NumType
{
return new ValTypes\NumType($type);
}
final public static function VecType(VecType $type): ValTypes\VecType
{
return new ValTypes\VecType($type);
}
final public static function RefType(RefType $type): ValTypes\RefType
{
return new ValTypes\RefType($type);
}
}
|