File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11<?php
2- /**
3- * Created by PhpStorm.
4- * User: jxlwqq
5- * Date: 2018/9/7
6- * Time: 14:07
7- */
82
93namespace Jxlwqq \IdValidator ;
104
11-
5+ /**
6+ * Trait Helper
7+ */
128trait Helper
139{
1410 /**
@@ -88,7 +84,7 @@ private function _getAddressInfo($addressCode)
8884 * @param string $birthdayCode 出生日期码
8985 * @return string
9086 */
91- public function _getConstellation ($ birthdayCode )
87+ private function _getConstellation ($ birthdayCode )
9288 {
9389 $ time = strtotime ($ birthdayCode );
9490 $ year = substr ($ birthdayCode , 0 , 4 );
@@ -123,7 +119,7 @@ public function _getConstellation($birthdayCode)
123119 * @param string $birthdayCode 出生日期码
124120 * @return mixed
125121 */
126- public function _getChineseZodiac ($ birthdayCode )
122+ private function _getChineseZodiac ($ birthdayCode )
127123 {
128124 $ start = 1900 ; // 子鼠
129125 $ end = substr ($ birthdayCode , 0 , 4 );
You can’t perform that action at this time.
0 commit comments