final class IndexHint extends SerializableComponent (View source)

Parses an Index hint.

Methods

string
__toString()

No description

array
jsonSerialize()

No description

__construct(string $type = '', string $indexOrKey = '', string|null $for = null, array $indexes = [])

No description

string
build()

Builds the string representation of a component of this type.

Details

string __toString()

No description

Return Value

string

array jsonSerialize()

No description

Return Value

array

__construct(string $type = '', string $indexOrKey = '', string|null $for = null, array $indexes = [])

No description

Parameters

string $type

The type of hint (USE/FORCE/IGNORE)

string $indexOrKey

What the hint is for (INDEX/KEY)

string|null $for

The clause for which this hint is (JOIN/ORDER BY/GROUP BY)

array $indexes

List of indexes in this hint

string build()

Builds the string representation of a component of this type.

In other words, this function represents the inverse function of {\PhpMyAdmin\SqlParser\Component::parse()}.

Return Value

string