| Methods |
public
|
__construct(array<int, array<string, mixed>> $data)
|
#
|
public
|
filter(AbstractScope $condition): $this
Applies FilterIterator making sure that values of $field equal to $value.
Applies FilterIterator making sure that values of $field equal to $value.
|
#
|
public
|
aggregate(string $fx, string $field, bool $coalesce = false): $this
Calculates SUM|AVG|MIN|MAX aggregate values for $field.
Calculates SUM|AVG|MIN|MAX aggregate values for $field.
|
#
|
protected
|
match(array<string, mixed> $row, AbstractScope $condition): bool
Checks if $row matches $condition.
Checks if $row matches $condition.
|
#
|
protected
|
evaluateIf(mixed $v1, string $operator, mixed $v2): bool
|
#
|
public
|
order(array<int, array{string, ('asc'|'desc')}> $fields): $this
Applies sorting on Iterator.
Applies sorting on Iterator.
|
#
|
public
|
limit(?int $limit, int $offset = 0): $this
Limit Iterator.
|
#
|
public
|
count(): $this
Counts number of rows and replaces our generator with just a single number.
Counts number of rows and replaces our generator with just a single number.
|
#
|
public
|
exists(): $this
Checks if iterator has any rows.
Checks if iterator has any rows.
|
#
|
public
|
getRows(): array<int, array<string, mixed>>
Return all data inside array.
Return all data inside array.
|
#
|
public
|
getRow(): array<string, mixed>|null
Return one row of data.
|
#
|
public
|
getOne(): mixed
Return one value from one row of data.
Return one value from one row of data.
|
#
|