code: public function current()
      {
          $this->prepareQuery();
  
          if (false !== current($this->idsArray)) {
              return current($this->idsArray);
          } else {
              throw new PointerException('Can\'t retrieve the current element');
          }
      }
docs: Implements Iterator interface
  @throws PointerException
  @return int