File tree Expand file tree Collapse file tree 3 files changed +84
-0
lines changed
Expand file tree Collapse file tree 3 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @link https://github.com/phpviet/validation
4+ * @copyright (c) PHP Viet
5+ * @license [MIT](https://opensource.org/licenses/MIT)
6+ */
7+
8+ namespace PHPViet \Validation \Exceptions ;
9+
10+ use Respect \Validation \Exceptions \ValidationException ;
11+
12+ /**
13+ * @author Vuong Minh <vuongxuongminh@gmail.com>
14+ * @since 1.0.0
15+ */
16+ class IdVNException extends ValidationException
17+ {
18+
19+ public static $ defaultTemplates = [
20+ self ::MODE_DEFAULT => [
21+ self ::STANDARD => '{{name}} must be a valid Viet Nam id number ' ,
22+ ],
23+ self ::MODE_NEGATIVE => [
24+ self ::STANDARD => '{{name}} must be a valid Viet Nam id number ' ,
25+ ],
26+ ];
27+
28+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @link https://github.com/phpviet/validation
4+ * @copyright (c) PHP Viet
5+ * @license [MIT](https://opensource.org/licenses/MIT)
6+ */
7+
8+ namespace PHPViet \Validation \Exceptions ;
9+
10+ use Respect \Validation \Exceptions \ValidationException ;
11+
12+ /**
13+ * @author Vuong Minh <vuongxuongminh@gmail.com>
14+ * @since 1.0.0
15+ */
16+ class LandLineVNException extends ValidationException
17+ {
18+
19+ public static $ defaultTemplates = [
20+ self ::MODE_DEFAULT => [
21+ self ::STANDARD => '{{name}} must be a valid Viet Nam land line phone number ' ,
22+ ],
23+ self ::MODE_NEGATIVE => [
24+ self ::STANDARD => '{{name}} must be a valid Viet Nam land line phone number ' ,
25+ ],
26+ ];
27+
28+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @link https://github.com/phpviet/validation
4+ * @copyright (c) PHP Viet
5+ * @license [MIT](https://opensource.org/licenses/MIT)
6+ */
7+
8+ namespace PHPViet \Validation \Exceptions ;
9+
10+ use Respect \Validation \Exceptions \ValidationException ;
11+
12+ /**
13+ * @author Vuong Minh <vuongxuongminh@gmail.com>
14+ * @since 1.0.0
15+ */
16+ class MobileVNException extends ValidationException
17+ {
18+
19+ public static $ defaultTemplates = [
20+ self ::MODE_DEFAULT => [
21+ self ::STANDARD => '{{name}} must be a valid Viet Nam mobile phone number ' ,
22+ ],
23+ self ::MODE_NEGATIVE => [
24+ self ::STANDARD => '{{name}} must be a valid Viet Nam mobile phone number ' ,
25+ ],
26+ ];
27+
28+ }
You can’t perform that action at this time.
0 commit comments