QueryObject
in package
implements
Stringable
DTO for a sql query.
Table of Contents
Interfaces
- Stringable
Properties
- $collections : array<string|int, mixed>
- $fields : array<string|int, mixed>
- $fieldsWithValues : array<string|int, mixed>
- $filters : array<string|int, mixed>
- $formatting : array<string|int, mixed>
- $groups : array<string|int, mixed>
- $joins : array<string|int, mixed>
- $limit : null|int
- $offset : null|int
- $sorts : array<string|int, mixed>
Methods
- __construct() : mixed
- __toString() : mixed
Properties
$collections
public
array<string|int, mixed>
$collections
$fields
public
array<string|int, mixed>
$fields
= []
$fieldsWithValues
public
array<string|int, mixed>
$fieldsWithValues
= []
$filters
public
array<string|int, mixed>
$filters
= []
$formatting
public
array<string|int, mixed>
$formatting
= []
$groups
public
array<string|int, mixed>
$groups
= []
$joins
public
array<string|int, mixed>
$joins
= []
$limit
public
null|int
$limit
= null
$offset
public
null|int
$offset
= null
$sorts
public
array<string|int, mixed>
$sorts
= []
Methods
__construct()
public
__construct(array<string|int, mixed> $collections[, array<string|int, mixed> $fields = [] ][, array<string|int, mixed> $fieldsWithValues = [] ][, array<string|int, mixed> $joins = [] ][, array<string|int, mixed> $filters = [] ][, array<string|int, mixed> $sorts = [] ][, array<string|int, mixed> $groups = [] ][, null|int $limit = null ][, null|int $offset = null ][, array<string|int, mixed> $formatting = [] ]) : mixed
Parameters
- $collections : array<string|int, mixed>
- $fields : array<string|int, mixed> = []
- $fieldsWithValues : array<string|int, mixed> = []
- $joins : array<string|int, mixed> = []
- $filters : array<string|int, mixed> = []
- $sorts : array<string|int, mixed> = []
- $groups : array<string|int, mixed> = []
- $limit : null|int = null
- $offset : null|int = null
- $formatting : array<string|int, mixed> = []
__toString()
public
__toString() : mixed