@ -16,7 +16,8 @@ class native_types
public const type_decimal = 'decimal';
}
class complex_types {
class complex_types
{
public const type_any = 'any';
public const type_var = 'any';
public const type_variant = 'any';
@ -45,36 +46,39 @@ class std
return boolval($value);
}
public static function array(mixed $type, int $size): array
public static function bigInt(mixed $value): mixed
{
return [] ;
return $value ;
}
public static function ordered_map(mixed $key_type, mixed $value_type): array
public static function decimal(mixed $value): mixed
{
return [] ;
return $value ;
}
public static function map(mixed $key_type, mixed $value_type): array
public static function bigFloat(mixed $value): mixed
{
return [] ;
return $value ;
}
public static function vector(mixed $value_typ e): array
public static function array(mixed $type, int $siz e): array
{
return [];
}
public static function unsafe_ptr(mixed & $value): mixed
public static function ordered_map(mixed $key_type, mixed $value_type): array
{
return null ;
return [] ;
}
public static function fill(array $array, mixed $value): void
public static function map(mixed $key_type, mixed $value_type): array
{
for ($i = 0; $i < count ( $ array ) ; $ i + + ) {
$array[$i] = $value;
return [];
}
public static function vector(mixed $value_type, ?int $size = null): array
{
return [];
}
}
@ -93,4 +97,3 @@ function objval(mixed $var, string $className): mixed
{
return $var;
}