class OrderBy (View source)

Expression class for building DQL Order By parts.

Properties

protected string $preSeparator
protected string $separator
protected string $postSeparator
protected array $allowedClasses
protected array $parts

Methods

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

No description

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

No description

integer
count()

No description

array
getParts()

No description

string
__tostring()

No description

Details

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

Parameters

string|null $sort
string|null $order

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

Parameters

string $sort
string|null $order

Return Value

void

integer count()

Return Value

integer

array getParts()

Return Value

array

string __tostring()

Return Value

string