@@ -18,6 +18,9 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | protected $id; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $id |
|
| 23 | + */ |
|
| 21 | 24 | public function __construct($id) |
| 22 | 25 | { |
| 23 | 26 | static::assertValidIDCard($id); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * 计算身份证最后一位 |
| 21 | 21 | * @param string $IDCardBody |
| 22 | - * @return bool|number |
|
| 22 | + * @return false|string |
|
| 23 | 23 | */ |
| 24 | 24 | public static function calcIDCardCode($IDCardBody) |
| 25 | 25 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * 将15位身份证升级到18位 |
| 43 | 43 | * @param number $id |
| 44 | - * @return bool|string |
|
| 44 | + * @return false|string |
|
| 45 | 45 | */ |
| 46 | 46 | public static function convertIDCard15to18($id) |
| 47 | 47 | { |