class OrderBy (View source)

Expression class for building DQL Order By parts.

Properties

protected string $preSeparator
protected string $separator
protected string $postSeparator
protected string[] $allowedClasses
protected mixed[] $parts

Methods

__construct(string|null $sort = null, string|null $order = null)

No description

add(string $sort, string|null $order = null)

No description

int
count()

No description

mixed[]
getParts()

No description

string
__toString()

No description

Details

__construct(string|null $sort = null, string|null $order = null)

Parameters

string|null $sort
string|null $order

add(string $sort, string|null $order = null)

Parameters

string $sort
string|null $order

int count()

Return Value

int

mixed[] getParts()

Return Value

mixed[]

string __toString()

Return Value

string