* @extends \ArrayAccess */ interface QueryResultInterface extends \Countable, \Iterator, \ArrayAccess { /** * @phpstan-param QueryInterface $query */ public function setQuery(QueryInterface $query): void; /** * Returns a clone of the query object * * @return \TYPO3\CMS\Extbase\Persistence\QueryInterface * @phpstan-return QueryInterface */ public function getQuery(); /** * Returns the first object in the result set * * @return object|null * @phpstan-return TValue|null */ public function getFirst(); /** * Returns an array with the objects in the result set * * @return array * @phpstan-return list */ public function toArray(); }