Respect\Validation\Validator::with PHP Method

with() public static method

public static with ( string $rulePrefix, boolean $prepend = false )
$rulePrefix string
$prepend boolean
    public static function with($rulePrefix, $prepend = false)
    {
        if (false === $prepend) {
            self::getFactory()->appendRulePrefix($rulePrefix);
        } else {
            self::getFactory()->prependRulePrefix($rulePrefix);
        }
    }

Usage Example

Example #1
0
 /**
  * Add your own rule's namespace.
  *
  * @param string $namespace
  *
  * @codeCoverageIgnore
  */
 public function with(string $namespace, bool $overwrite = false)
 {
     RespectValidator::with($namespace, $overwrite);
 }
All Usage Examples Of Respect\Validation\Validator::with