final class IndexHint implements Component (View source)

Parses an Index hint.

Methods

__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.

string
__toString()

No description

Details

__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

string __toString()

No description

Return Value

string