public function next() { $this->event_snapshots->next(); if (!$this->event_snapshots->valid() && $this->has_more_chunks()) { $this->fetch(); } $this->streamed_count = $this->streamed_count->increment(); }
public function run() { while ($this->can_upgrade()) { $function = $this->get_function_name(); if (!method_exists($this, $function)) { throw new \Exception('An upgrade handler could not be found.'); } $this->{$function}($this->schema); $this->version = $this->version->increment(); } }