20 public const FLAG_FORCE_COLLAPSE_ENUM = 0x1;
21 public const FLAG_HAS_ENUM_CONSTRAINT = 0x2;
23 public string $paramName;
24 public int $paramType;
25 public bool $isOptional;
26 public int $flags = 0;
28 public ?
string $postfix =
null;
30 private static function baseline(
string $name,
int $type,
int $flags,
bool $optional) :
self{
32 $result->paramName = $name;
33 $result->paramType = $type;
34 $result->flags = $flags;
35 $result->isOptional = $optional;
39 public static function standard(
string $name,
int $type,
int $flags = 0,
bool $optional =
false) :
self{
43 public static function postfixed(
string $name,
string $postfix,
int $flags = 0,
bool $optional =
false) :
self{
45 $result->postfix = $postfix;
49 public static function enum(
string $name,
CommandEnum $enum,
int $flags,
bool $optional =
false) :
self{
51 $result->enum = $enum;