class SlimData extends stdClass implements JsonSerializable (View source)

Methods

__construct(float|null $version = null, array|null $types = null, array|null $varTypes = null)

Create a slimData object

addVariable(string $name, string|null $type, bool|null $dynamic)

Add a variable

array
jsonSerialize()

Used for json_encode function This can seem useless, do not remove it.

Details

__construct(float|null $version = null, array|null $types = null, array|null $varTypes = null)

Create a slimData object

Parameters

float|null $version

The version

array|null $types

The types of documentations

array|null $varTypes

The types of variables

KBEntry addVariable(string $name, string|null $type, bool|null $dynamic)

Add a variable

Parameters

string $name

The name

string|null $type

The type

bool|null $dynamic

Is dynamic

Return Value

KBEntry

The newly created KBEntry

array jsonSerialize()

Used for json_encode function This can seem useless, do not remove it.

Return Value

array