1 | <?php namespace Serima\MyNumber; |
||
3 | class MyNumber |
||
4 | { |
||
5 | /** |
||
6 | * Check the number of digits. |
||
7 | * Pass the number as string, if starting letter is beginning zero. |
||
8 | * |
||
9 | * @param integer|string $number |
||
10 | * @param integer $digit |
||
11 | * @return bool |
||
12 | */ |
||
13 | public static function checkLength($number, $digit) |
||
20 | |||
21 | /** |
||
22 | * Verify personal MyNumber. |
||
23 | * Pass the number as string, if starting letter is beginning zero. |
||
24 | * |
||
25 | * @param integer|string $number |
||
26 | * @return bool |
||
27 | * @link http://law.e-gov.go.jp/announce/H26F11001000085.html |
||
28 | */ |
||
29 | public static function verifyPersonal($number) |
||
48 | |||
49 | /** |
||
50 | * Verify company MyNumber. |
||
51 | * Pass the number as string, if starting letter is beginning zero. |
||
52 | * |
||
53 | * @param integer|string $number |
||
54 | * @return bool |
||
55 | * @link http://law.e-gov.go.jp/announce/H26F14001000070.html |
||
56 | */ |
||
57 | public static function verifyCompany($number) |
||
73 | } |
||
74 |