示例#1
0
文件: FormUtil.php 项目: hanif/stokq
 /**
  * @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;
 }