PluginProbe
PayPlug for WooCommerce (Official) / 1.2.3
PayPlug for WooCommerce (Official) v1.2.3
3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 All 101 releases
payplug / lib / libphonenumber / ValidationResult.php

ValidationResult.php in PayPlug for WooCommerce (Official) 1.2.3, at lib/libphonenumber/ValidationResult.php

46 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace libphonenumber;
4
5 /**
6 * Possible outcomes when testing if a PhoneNumber is possible.
7 */
8 class ValidationResult
9 {
10 /**
11 * The number length matches that of valid numbers for this region
12 */
13 const IS_POSSIBLE = 0;
14
15 /**
16 * The number has an invalid country calling code.
17 */
18 const INVALID_COUNTRY_CODE = 1;
19
20 /**
21 * The number is shorter than all valid numbers for this region.
22 */
23 const TOO_SHORT = 2;
24
25 /**
26 * The number is longer than all valid numbers for this region.
27 */
28 const TOO_LONG = 3;
29
30 /**
31 * The number length matches that of local numbers for this region only (i.e. numbers that may
32 * be able to be dialled within an area, but do not have all the information to be dialled from
33 * anywhere inside or outside the country).
34 */
35 const IS_POSSIBLE_LOCAL_ONLY = 4;
36
37 /**
38 * The number is longer than the shortest valid numbers for this region, shorter than the
39 * longest valid numbers for this region, and does not itself have a number length that matches
40 * valid numbers for this region. This can also be returned in the case where
41 * isPossibleNumberForTypeWithReason was called, and there are no numbers of this type at all
42 * for this region.
43 */
44 const INVALID_LENGTH = 5;
45 }
46