1 | <?php |
||
29 | abstract class SizeValidator |
||
30 | { |
||
31 | |||
32 | use AllowEmpty, |
||
33 | Messages; |
||
34 | |||
35 | /** |
||
36 | * @var integer maximum length. Defaults to null, meaning no maximum limit. |
||
37 | */ |
||
38 | public $max; |
||
39 | |||
40 | /** |
||
41 | * @var integer minimum length. Defaults to null, meaning no minimum limit. |
||
42 | */ |
||
43 | public $min; |
||
44 | |||
45 | /** |
||
46 | * @var integer exact length. Defaults to null, meaning no exact length limit. |
||
47 | */ |
||
48 | public $is; |
||
49 | |||
50 | /** |
||
51 | * @var string user-defined error message used when the value is too short. |
||
52 | * @deprecated use `msgTooShort` instead |
||
53 | */ |
||
54 | public $tooShort; |
||
55 | |||
56 | /** |
||
57 | * @var string user-defined error message used when the value is too long. |
||
58 | * @deprecated use `msgTooLong` instead |
||
59 | */ |
||
60 | public $tooLong; |
||
61 | |||
62 | /** |
||
63 | * @Label('{attribute} is invalid') |
||
64 | * @var string |
||
65 | */ |
||
66 | public $msgInvalid = ''; |
||
67 | |||
68 | /** |
||
69 | * @Label('{attribute} is too small') |
||
70 | * @var string |
||
71 | */ |
||
72 | public $msgTooShort = ''; |
||
73 | |||
74 | /** |
||
75 | * @Label('{attribute} is too large') |
||
76 | * @var string |
||
77 | */ |
||
78 | public $msgTooLong = ''; |
||
79 | |||
80 | /** |
||
81 | * @Label('{attribute} is of the wrong size') |
||
82 | * @var string |
||
83 | */ |
||
84 | public $msgLength = ''; |
||
85 | |||
86 | 6 | protected function isValidValueOf($model, $attribute, $value, $label = '') |
|
129 | |||
130 | } |
||
131 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.