/** * Reject workflow, also all of it's steps and verificators status if only it's not expired. * * @return \Docoflow\Flo */ public function rejectIf() { if ($this->workflow) { $this->workflow->rejectIf(); if (($verificators = $this->verificators()) instanceof Verificator) { $verificators->rejectIf(); } if (($steps = $this->steps()) instanceof Step) { $steps->rejectIf(); } } return $this; }