final class OrderKeyword extends SerializableComponent (View source)

ORDER BY keyword parser.

Properties

Expression|null $expr

The expression that is used for ordering.

OrderSortKeyword $type

The order type.

Methods

string
__toString()

No description

array
jsonSerialize()

No description

__construct(Expression|null $expr = null, OrderSortKeyword $type = OrderSortKeyword::Asc)

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(Expression|null $expr = null, OrderSortKeyword $type = OrderSortKeyword::Asc)

No description

Parameters

Expression|null $expr

the expression that we are sorting by

OrderSortKeyword $type

the sorting type

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