public static function rule($operator, $parameters=[], $name=null)
    {
        return new Constraint($name ?: $operator, (array)$parameters, $operator);
    }
public static function rule($operator, $parameters=[], $name=null)
    {
        return new Constraint($name ?: $operator, (array)$parameters, $operator);
    }
public static function rule ( $ operator , $ parameters = [ ] , $ name = null ) { return new Constraint ( $ name ? : $ operator , ( array ) $ parameters , $ operator ) ; }
Create a new constraint

@param string $name
@param array $parameters  (optional)

@return Constraint
Create a new constraint