final class OrderKeyword implements Component (View source)

ORDER BY keyword parser.

Properties

Expression|null $expr

The expression that is used for ordering.

OrderSortKeyword $type

The order type.

Methods

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

No description

string
build()

Builds the string representation of a component of this type.

string
__toString()

No description

Details

__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

string __toString()

No description

Return Value

string