1 | <?php |
||
22 | class QueryBuilderValidation implements JsonSerializable { |
||
23 | |||
24 | /** |
||
25 | * Allow empty value. |
||
26 | * |
||
27 | * @var boolean |
||
28 | */ |
||
29 | private $allowEmptyValue; |
||
30 | |||
31 | /** |
||
32 | * Callback. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $callback; |
||
37 | |||
38 | /** |
||
39 | * Format. |
||
40 | * |
||
41 | * @var string|array |
||
42 | */ |
||
43 | private $format; |
||
44 | |||
45 | /** |
||
46 | * Max. |
||
47 | * |
||
48 | * @var integer|float|string |
||
49 | */ |
||
50 | private $max; |
||
51 | |||
52 | /** |
||
53 | * Messages. |
||
54 | * |
||
55 | * @var array |
||
56 | */ |
||
57 | private $messages; |
||
58 | |||
59 | /** |
||
60 | * Min. |
||
61 | * |
||
62 | * @var integer|float|string |
||
63 | */ |
||
64 | private $min; |
||
65 | |||
66 | /** |
||
67 | * Step. |
||
68 | * |
||
69 | * @var integer|float |
||
70 | */ |
||
71 | private $step; |
||
72 | |||
73 | /** |
||
74 | * Constructor. |
||
75 | */ |
||
76 | public function __construct() { |
||
79 | |||
80 | /** |
||
81 | * Get the allow empty value. |
||
82 | * |
||
83 | * @return boolean Returns the allow empty value. |
||
84 | */ |
||
85 | public function getAllowEmptyValue() { |
||
88 | |||
89 | /** |
||
90 | * Get the callback. |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getCallback() { |
||
97 | |||
98 | /** |
||
99 | * Get the format. |
||
100 | * |
||
101 | * @return string|array Returns the dormat. |
||
102 | */ |
||
103 | public function getFormat() { |
||
106 | |||
107 | /** |
||
108 | * Get the max. |
||
109 | * |
||
110 | * @return integer|float|string Returns the max. |
||
111 | */ |
||
112 | public function getMax() { |
||
115 | |||
116 | /** |
||
117 | * Get the messages. |
||
118 | * |
||
119 | * @return array Returns the messages. |
||
120 | */ |
||
121 | public function getMessages() { |
||
124 | |||
125 | /** |
||
126 | * Get the min. |
||
127 | * |
||
128 | * @return integer|float|string Returns the min. |
||
129 | */ |
||
130 | public function getMin() { |
||
133 | |||
134 | /** |
||
135 | * Get the step. |
||
136 | * |
||
137 | * @return integer|float Returns the step/ |
||
138 | */ |
||
139 | public function getStep() { |
||
142 | |||
143 | /** |
||
144 | * Serialize this instance. |
||
145 | * |
||
146 | * @return array Returns an array representing this instance. |
||
147 | */ |
||
148 | public function jsonSerialize() { |
||
151 | |||
152 | /** |
||
153 | * Set the allow empty value. |
||
154 | * |
||
155 | * @param boolean $allowEmptyValue The allow empty value. |
||
156 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
157 | */ |
||
158 | public function setAllowEmptyValue($allowEmptyValue) { |
||
162 | |||
163 | /** |
||
164 | * Set the callback. |
||
165 | * |
||
166 | * @param string $callback The callback. |
||
167 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
168 | */ |
||
169 | public function setCallback($callback) { |
||
173 | |||
174 | /** |
||
175 | * Set the format. |
||
176 | * |
||
177 | * @param string|array $format The format. |
||
178 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
179 | */ |
||
180 | public function setFormat($format) { |
||
184 | |||
185 | /** |
||
186 | * Set the max. |
||
187 | * |
||
188 | * @param integer|float|string $max The max. |
||
189 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
190 | */ |
||
191 | public function setMax($max) { |
||
195 | |||
196 | /** |
||
197 | * Set the messages. |
||
198 | * |
||
199 | * @param array $messages The messages. |
||
200 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
201 | */ |
||
202 | public function setMessages(array $messages = []) { |
||
206 | |||
207 | /** |
||
208 | * Set the min. |
||
209 | * |
||
210 | * @param integer|float|string $min The min. |
||
211 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
212 | */ |
||
213 | public function setMin($min) { |
||
217 | |||
218 | /** |
||
219 | * Set the step. |
||
220 | * |
||
221 | * @param integer|float $step The step. |
||
222 | * @return QueryBuilderValidation Returns the jQuery QueryBuilder validation. |
||
223 | */ |
||
224 | public function setStep($step) { |
||
228 | |||
229 | /** |
||
230 | * Convert into an array representing this instance. |
||
231 | * |
||
232 | * @return array Returns an array representing this instance. |
||
233 | */ |
||
234 | public function toArray() { |
||
277 | |||
278 | } |
||
279 |