File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ private function _getPosWeight()
2626 /**
2727 * 获取数字补位.
2828 *
29- * @param $str
29+ * @param string|int $str 字符串
3030 * @param int $len 长度
3131 * @param string $chr 补位值
3232 * @param bool $right 左右
@@ -285,7 +285,8 @@ private function _generatorCheckBit($body)
285285 /**
286286 * 生成地址码
287287 *
288- * @return string
288+ * @param string $address 地址(行政区全称)
289+ * @return false|int|string
289290 */
290291 private function _generatorAddressCode ($ address )
291292 {
@@ -331,6 +332,8 @@ private function _generatorAddressCode($address)
331332 /**
332333 * 生成出生日期码
333334 *
335+ * @param int|string $birthday 出生日期
336+ *
334337 * @return string
335338 */
336339 private function _generatorBirthdayCode ($ birthday )
@@ -366,7 +369,9 @@ private function _generatorBirthdayCode($birthday)
366369 /**
367370 * 生成顺序码
368371 *
369- * @return string
372+ * @param int $sex 性别
373+ *
374+ * @return int|string
370375 */
371376 private function _generatorOrderCode ($ sex )
372377 {
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ public function getInfo($id)
105105 *
106106 * @param bool $eighteen 是否为 18 位
107107 * @param null|string|array $address 地址
108- * @param null|string|int $sex 性别(1为男性,0位女性)
109108 * @param null|string|int|array $birthday 出生日期
109+ * @param null|string|int $sex 性别(1为男性,0位女性)
110110 *
111111 * @return string
112112 */
You can’t perform that action at this time.
0 commit comments