Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
13 / 13 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
| 5 | */ |
| 6 | |
| 7 | declare (strict_types=1); |
| 8 | |
| 9 | namespace pvc\validator\messages; |
| 10 | |
| 11 | return [ |
| 12 | 'not_null' => 'value cannot be null', |
| 13 | 'invalid_min_max_date' => "value is not between {'min', date, short} and {'max'}, date, short}", |
| 14 | 'invalid_min_max_time' => "value is not between {'min', time, short} and {'max'}, time, short}", |
| 15 | 'invalid_min_max_float' => "value is not between {'min', number, float} and {'max', number, float}", |
| 16 | 'invalid_min_max_integer' => "value is not between {'min', number, integer} and {'max', number, integer}", |
| 17 | 'invalid_email' => 'value is not a valid email address.', |
| 18 | 'invalid_url' => 'value is not a valid url', |
| 19 | 'regex_test_failed' => 'value is not a valid {regex_label}', |
| 20 | 'filter_var_test_failed' => 'value is not a valid {filter_var_label}', |
| 21 | 'not_alnum' => 'value is not a letter or a number', |
| 22 | 'not_printable' => 'string contains non-printable characters (e.g. control characters)', |
| 23 | ]; |