예제 #1
0
 /**
  * Reset workflow, also all of it's steps and verificators status.
  *
  * @return \Docoflow\Flo
  */
 public function reset()
 {
     if ($this->workflow) {
         $this->workflow->reset();
         if (($verificators = $this->verificators()) instanceof Verificator) {
             $verificators->reset();
         }
         if (($steps = $this->steps()) instanceof Step) {
             $steps->reset();
         }
     }
     return $this;
 }