final class OrderKeyword implements Component (View source)

ORDER BY keyword parser.

Properties

Expression|null $expr

The expression that is used for ordering.

string $type

The order type.

Methods

__construct(Expression|null $expr = null, string $type = '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, string $type = 'ASC')

No description

Parameters

Expression|null $expr

the expression that we are sorting by

string $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