Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
     }
 }