/** * @param array $workflow * @param $from * @param bool $allow_jumps * @return Workflow */ public static function workflowValidator(array $workflow, $from, $allow_jumps = false) { $validator = new Workflow(compact('workflow', 'from', 'allow_jumps')); $validator->setMessage("Alur tidak diperbolehkan."); return $validator; }