class KBEntry extends stdClass implements JsonSerializable (View source)

Methods

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

Create a KBEntry object

string
getName()

Get the variable name

bool|null
isDynamic()

Is the variable dynamic

string|null
getType()

Get the variable type

bool
hasDocumentations()

Variable has documentations

array
getDocumentations()

Get all documentations

addDocumentation(string $url, string|null $anchor = null)

Add documentation link

array
jsonSerialize()

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

Details

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

Create a KBEntry object

Parameters

string $name

The name of the variable

string|null $type

Type of variable

bool|null $dynamic

Is dynamic ?

string getName()

Get the variable name

Return Value

string

bool|null isDynamic()

Is the variable dynamic

Return Value

bool|null

string|null getType()

Get the variable type

Return Value

string|null

bool hasDocumentations()

Variable has documentations

Return Value

bool

array getDocumentations()

Get all documentations

Return Value

array

KBDocumentation addDocumentation(string $url, string|null $anchor = null)

Add documentation link

Parameters

string $url

The URL

string|null $anchor

The anchor

Return Value

KBDocumentation

array jsonSerialize()

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

Return Value

array