class EmptyQueryResult implements QueryResultInterface (View source)

An empty result list

Properties

protected QueryInterface $query

Methods

__construct(QueryInterface $query)

Constructor

getQuery()

Returns a clone of the query object

object|null
getFirst()

Returns NULL

array
toArray()

Returns an empty array

object
current()

No description

void
next()

No description

int
key()

No description

bool
valid()

No description

void
rewind()

No description

bool
offsetExists(mixed $offset)

No description

mixed
offsetGet(mixed $offset)

No description

void
offsetSet(mixed $offset, mixed $value)

No description

void
offsetUnset(mixed $offset)

No description

int
count()

No description

Details

__construct(QueryInterface $query)

Constructor

Parameters

QueryInterface $query

QueryInterface getQuery()

Returns a clone of the query object

Return Value

QueryInterface

object|null getFirst()

Returns NULL

Return Value

object|null

array toArray()

Returns an empty array

Return Value

array

object current()

No description

Return Value

object

Returns NULL in this case

void next()

No description

Return Value

void

int key()

No description

Return Value

int

Returns 0 in this case

bool valid()

No description

Return Value

bool

Returns false in this case

void rewind()

No description

Return Value

void

bool offsetExists(mixed $offset)

No description

Parameters

mixed $offset

Return Value

bool

Returns false in this case

mixed offsetGet(mixed $offset)

No description

Parameters

mixed $offset

Return Value

mixed

Returns NULL in this case

void offsetSet(mixed $offset, mixed $value)

No description

Parameters

mixed $offset

The offset is ignored in this case

mixed $value

The value is ignored in this case

Return Value

void

void offsetUnset(mixed $offset)

No description

Parameters

mixed $offset

The offset is ignored in this case

Return Value

void

int count()

No description

Return Value

int

Returns 0 in this case