QueryResultInterface extends Countable, Iterator, ArrayAccess
A lazy result list that is returned by Query::execute()
Tags
Table of Contents
Methods
- getFirst() : TValue|null
- Returns the first object in the result set
- getQuery() : QueryInterface<string|int, TValue>
- Returns a clone of the query object
- setQuery() : void
- toArray() : array<int, TValue>
- Returns an array with the objects in the result set
Methods
getFirst()
Returns the first object in the result set
public
getFirst() : TValue|null
Return values
TValue|nullgetQuery()
Returns a clone of the query object
public
getQuery() : QueryInterface<string|int, TValue>
Return values
QueryInterface<string|int, TValue>setQuery()
public
setQuery(QueryInterface<string|int, TValue> $query) : void
Parameters
- $query : QueryInterface<string|int, TValue>
toArray()
Returns an array with the objects in the result set
public
toArray() : array<int, TValue>