QueryResultInterface

interface \TYPO3\CMS\Extbase\Persistence\QueryResultInterface

Extends
Countable, Iterator, ArrayAccess

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

Tags

template
template
extends
extends

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
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

Tags

phpstan-return

list<TValue>

Return values

array
On this page