Neos\Flow\Persistence\Generic\QueryResult::offsetExists PHP Method

offsetExists() public method

This method is needed to implement the \ArrayAccess interface, but it isn't very useful as the offset has to be an integer
See also: ArrayAccess::offsetExists()
public offsetExists ( mixed $offset ) : boolean
$offset mixed
return boolean
    public function offsetExists($offset)
    {
        $this->initialize();
        return isset($this->queryResult[$offset]);
    }

Usage Example

 /**
  * @test
  */
 public function offsetUnsetWorksAsExpected()
 {
     $this->queryResult->offsetUnset(0);
     $this->assertFalse($this->queryResult->offsetExists(0));
 }