@@ -80,7 +80,7 @@ public function getYearOfBirth($pin): int {
8080 /**
8181 * Get the person's month of birth by Personal Identification Code.
8282 *
83- * @param type $pin Estonian Personal Identification Code.
83+ * @param string $pin Estonian Personal Identification Code.
8484 * @return int The month when the person was born.
8585 * @throws InvalidPersonalIdentificationNrException
8686 * If validation of Personal Identification Code fails.
@@ -95,7 +95,7 @@ public function getMonthOfBirth($pin): int {
9595 /**
9696 * Get the person's day of birth by Estonian Personal Identification Code.
9797 *
98- * @param type $pin Estonian Personal Identification Code.
98+ * @param string $pin Estonian Personal Identification Code.
9999 * @return int The day when the person was born.
100100 * @throws InvalidPersonalIdentificationNrException
101101 * If validation of Personal Identification Code fails.
@@ -131,7 +131,7 @@ public function getSerialNumber($pin): string {
131131 /**
132132 * Get the person's date of birth as PHP DateTime object by Personal Identification Code.
133133 *
134- * @param type $pin Estonian Personal Identification Code.
134+ * @param string $pin Estonian Personal Identification Code.
135135 * @return \DateTime The date of birth as PHP DateTime object.
136136 * @throws InvalidPersonalIdentificationNrException
137137 * If validation of Personal Identification Code fails.
@@ -152,7 +152,7 @@ public function getBirthDateAsDatetimeObj($pin): \DateTime {
152152 * Get the person's current age as PHP DateInterval object.
153153 * Note that DateInterval calculation precision depends on timezone set in php.ini.
154154 *
155- * @param type $pin Estonian Personal Identification Code.
155+ * @param string $pin Estonian Personal Identification Code.
156156 * @return \DateInterval The current age as PHP DateInterval object.
157157 * @throws InvalidPersonalIdentificationNrException
158158 * If validation of Personal Identification Code fails.
@@ -181,7 +181,7 @@ public function getCurrentAgeInYearsByPIN($pin): int {
181181 * Use this only to pre-validate the format of the Personal Identification Code.
182182 *
183183 *
184- * @param type $pin Estonian Personal Identification Code.
184+ * @param string $pin Estonian Personal Identification Code.
185185 * @return bool True if Estonian Personal Identification Code matches the
186186 * regular expression, false otherwise.
187187 */
@@ -209,7 +209,7 @@ public function validate($pin): bool {
209209 * Validates Estonian Personal Identification Code.
210210 * Throws descriptive exceptions if any of the validation steps fails.
211211 *
212- * @param type $pin Estonian Personal Identification Code.
212+ * @param string $pin Estonian Personal Identification Code.
213213 * @return bool True if Estonian Personal Identification Code passes
214214 * all validations, false otherwise.
215215 * @throws InvalidDateException
0 commit comments