These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace leandrogehlen\querybuilder; |
||
4 | |||
5 | |||
6 | use yii\base\Object; |
||
7 | |||
8 | /** |
||
9 | * The validation object representation |
||
10 | * |
||
11 | * @see http://mistic100.github.io/jQuery-QueryBuilder/#validation |
||
12 | * @author Leandro Gehlen <[email protected]> |
||
13 | */ |
||
14 | class Validation extends Object implements Optionable |
||
0 ignored issues
–
show
|
|||
15 | { |
||
16 | use OptionTrait; |
||
17 | |||
18 | /** |
||
19 | * @var string Performs validation according to the specified format |
||
20 | * - For `date`, `time`, `datetime`: a valid MomentJS string format |
||
21 | * - For `string`: a regular expression (plain or RegExp object) |
||
22 | */ |
||
23 | public $format; |
||
24 | |||
25 | /** |
||
26 | * @var integer|float|string upper limit of the number |
||
27 | * - For `integer`, `double`: maximum value |
||
28 | * - For `date`, `time`, `datetime`: maximum value, respecting format |
||
29 | * - For `string`: maximum length |
||
30 | */ |
||
31 | public $max; |
||
32 | /** |
||
33 | * @var integer|float|string lower limit of the number |
||
34 | * - For `integer`, `double`: minimum value |
||
35 | * - For `date`, `time`, `datetime`: minimum value, respecting format |
||
36 | * - For `string`: minimum length |
||
37 | */ |
||
38 | public $min; |
||
39 | |||
40 | /** |
||
41 | * @var integer|double The step value |
||
42 | * For double you should always provide this value in order to pass the browser validation on number inputs |
||
43 | */ |
||
44 | public $step; |
||
45 | |||
46 | /** |
||
47 | * @var yii\web\JsExpression A function used to perform the validation. |
||
48 | * If provided, the default validation will not be performed. It must returns true if the value is valid |
||
49 | * or an error string otherwise. It takes 4 parameters: |
||
50 | * value |
||
51 | * filter |
||
52 | * operator |
||
53 | * $rule, the jQuery <li> element of the rule |
||
54 | */ |
||
55 | public $callback; |
||
56 | |||
57 | } |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.