/** * implements Iterator function * * @access public * @return integer */ public function valid() { if (!$this->valid) { $this->partition->setMessageOffset($this->offset); // one partition iterator end \Kafka\Protocol\Fetch\Helper\Helper::onPartitionEof($this->partition); } return $this->valid; }