public function next()
    {
        if ($this->valid() !== false) {
            if ($this->getStartType() == BinlogParser::START_TYPE_DATE) {
                $this->setFrom($this->current()->getTimestamp());
            } elseif ($this->getStartType() == BinlogParser::START_TYPE_POSITION) {
                $this->setFrom($this->current()->getDiffId());
            }
        }
        $this->getBinlogDecorator()->next();
    }
public function next()
    {
        if ($this->valid() !== false) {
            if ($this->getStartType() == BinlogParser::START_TYPE_DATE) {
                $this->setFrom($this->current()->getTimestamp());
            } elseif ($this->getStartType() == BinlogParser::START_TYPE_POSITION) {
                $this->setFrom($this->current()->getDiffId());
            }
        }
        $this->getBinlogDecorator()->next();
    }
{@inheritdoc}