Kafka\Protocol\Fetch\MessageSet::valid PHP Method

valid() public method

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