@@ -10,50 +10,50 @@ final class ValidationRegex
1010 /**
1111 * ISO date time format: Y-m-d H:i:s.
1212 */
13- const DATE_TIME_ISO = '/^[\d]{4}\-[\d]{2}\-[\d]{2} [\d]{2}\:[\d]{2}\:[\d]{2}$/ ' ;
13+ public const DATE_TIME_ISO = '/^[\d]{4}\-[\d]{2}\-[\d]{2} [\d]{2}\:[\d]{2}\:[\d]{2}$/ ' ;
1414
1515 /**
1616 * ISO date time format: Y-m-d.
1717 */
18- const DATE_ISO = '/^[\d]{4}\-[\d]{2}\-[\d]{2}$/ ' ;
18+ public const DATE_ISO = '/^[\d]{4}\-[\d]{2}\-[\d]{2}$/ ' ;
1919
2020 /**
2121 * Date format: d.m.Y.
2222 */
23- const DATE_DMY = '/^[0-9]{2}\.[0-9]{2}\.[0-9]{4}$/ ' ;
23+ public const DATE_DMY = '/^[0-9]{2}\.[0-9]{2}\.[0-9]{4}$/ ' ;
2424
2525 /**
2626 * International phone number.
2727 */
28- const PHONE_NUMBER = '/^\+[0-9]{6,}$/ ' ;
28+ public const PHONE_NUMBER = '/^\+[0-9]{6,}$/ ' ;
2929
3030 /**
3131 * ISO 2 country code, e.g. CH, DE, FR.
3232 */
33- const COUNTRY_ISO_2 = '/^[A-Z]{2}$/ ' ;
33+ public const COUNTRY_ISO_2 = '/^[A-Z]{2}$/ ' ;
3434
3535 /**
3636 * String with no spaces at both ends.
3737 */
38- const TRIMMED = '/^[\S]+(?: +[\S]+)*$/ ' ;
38+ public const TRIMMED = '/^[\S]+(?: +[\S]+)*$/ ' ;
3939
4040 /**
4141 * Positive integer >= 1.
4242 */
43- const ID = '/^[1-9][0-9]*$/ ' ;
43+ public const ID = '/^[1-9][0-9]*$/ ' ;
4444
4545 /**
4646 * Generic UUID.
4747 */
48- const UUID = '/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/ ' ;
48+ public const UUID = '/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/ ' ;
4949
5050 /**
5151 * Postal code. Can start with 0. Not for canada.
5252 */
53- const POSTAL_CODE = '/^[\d]{4,}$/ ' ;
53+ public const POSTAL_CODE = '/^[\d]{4,}$/ ' ;
5454
5555 /**
5656 * Positive float.
5757 */
58- const POSITIVE_FLOAT = '/^([\d]*[.])?[\d]+$/ ' ;
58+ public const POSITIVE_FLOAT = '/^([\d]*[.])?[\d]+$/ ' ;
5959}
0 commit comments