Neos\Flow\Persistence\Doctrine\QueryResult::offsetGet PHP Метод

offsetGet() публичный Метод

public offsetGet ( mixed $offset ) : mixed
$offset mixed
Результат mixed
    public function offsetGet($offset)
    {
        $this->initialize();
        return isset($this->rows[$offset]) ? $this->rows[$offset] : null;
    }

Usage Example

 /**
  * @test
  */
 public function offsetGetReturnsNullIfOffsetDoesNotExist()
 {
     $this->assertNull($this->queryResult->offsetGet('foo'));
 }