8889841cclixcotz/mars.clix.co.tz/vendor/laravel/framework/src/Illuminate/Validation/Rules/RequiredIf.php000066600000001701150515421140027757 0ustar00homecondition = $condition; } else { throw new InvalidArgumentException('The provided condition must be a callable or boolean.'); } } /** * Convert the rule to a validation string. * * @return string */ public function __toString() { if (is_callable($this->condition)) { return call_user_func($this->condition) ? 'required' : ''; } return $this->condition ? 'required' : ''; } }