/** * Adds a validation condition a returns new branch. * @param mixed condition type * @param mixed optional condition arguments * @return Rules new branch */ public function addCondition($operation, $value = NULL) { return $this->rules->addCondition($operation, $value); }
/** * Adds a validation condition a returns new branch. * @param mixed condition type * @param mixed optional condition arguments * @return Rules new branch */ public function addCondition($validator, $value = NULL) { return $this->rules->addCondition($validator, $value); }