QueryResultInterface extends Countable, Iterator, ArrayAccess

A lazy result list that is returned by Query::execute()

Tags
template

TKey

template

TValue of object

extends

\Iterator<TKey,TValue>

extends

\ArrayAccess<TKey,TValue>

Table of Contents

Methods

getFirst()  : object|null
Returns the first object in the result set
getQuery()  : QueryInterface
Returns a clone of the query object
setQuery()  : void
toArray()  : array<string|int, mixed>
Returns an array with the objects in the result set

Methods

getFirst()

Returns the first object in the result set

public getFirst() : object|null
Tags
phpstan-return

TValue|null

Return values
object|null

toArray()

Returns an array with the objects in the result set

public toArray() : array<string|int, mixed>
Tags
phpstan-return

list<TValue>

Return values
array<string|int, mixed>

        
On this page

Search results