Documentation

OrderBy
in package

Expression class for building DQL Order By parts.

Tags
link
www.doctrine-project.org

Table of Contents

Properties

$allowedClasses  : array<string|int, string>
$parts  : mixed
$postSeparator  : string
$preSeparator  : string
$separator  : string

Methods

__construct()  : mixed
__toString()  : string
add()  : void
count()  : int
getParts()  : mixed

Properties

$allowedClasses

protected array<string|int, string> $allowedClasses = []

$parts

protected mixed $parts = []
Tags
psalm-var

list

$postSeparator

protected string $postSeparator = ''

$preSeparator

protected string $preSeparator = ''

$separator

protected string $separator = ', '

Methods

__construct()

public __construct([string|null $sort = null ][, string|null $order = null ]) : mixed
Parameters
$sort : string|null = null
$order : string|null = null

__toString()

public __toString() : string
Return values
string

add()

public add(string $sort[, string|null $order = null ]) : void
Parameters
$sort : string
$order : string|null = null

count()

public count() : int
Tags
psalm-return

0|positive-int

Return values
int

getParts()

public getParts() : mixed
Tags
psalm-return

list


        
On this page

Search results