src/RijksregisternummerHelper.php
/**
   * Creates and returns an identification number of the National Register.
   *
   * @param string $birthday       The birthday in ISO 8601 format.
   * @param int    $sequenceNumber The sequence number.
   * @param int    $type           The type.
   *
   * @return Rijksregisternummer
   */
Creates and returns an identification number of the National Register.
@param string $birthday       The birthday in ISO 8601 format.
@param int    $sequenceNumber The sequence number.
@param int    $type           The type.

@return Rijksregisternummer
Creates and returns an identification number of the National Register . @param string $birthday The birthday in ISO 8601 format . @param int $sequenceNumber The sequence number . @param int $type The type . @return Rijksregisternummer
public static function create(string $birthday,
                                int $sequenceNumber,
                                int $type = self::TYPE_RIJKSREGISTERNUMMER): string
  {
    $year2 = (int)substr($birthday, 2, 2);
    $month = (int)substr($birthday, 5, 2);
    $day   = (int)substr($birthday, 8, 2);
    $month = self::adjustMonth($month, $type);
    $check = self::computeCheckDigits($birthday, $sequenceNumber, $type);
    return sprintf('%02d%02d%02d%03d%02d', $year2, $month, $day, $sequenceNumber, $check);
  }
public static function create ( string $ birthday , int $ sequenceNumber , int $ type = self :: TYPE_RIJKSREGISTERNUMMER ) : string { $ year2 = ( int ) substr ( $ birthday , 2 , 2 ) ; $ month = ( int ) substr ( $ birthday , 5 , 2 ) ; $ day = ( int ) substr ( $ birthday , 8 , 2 ) ; $ month = self :: adjustMonth ( $ month , $ type ) ; $ check = self :: computeCheckDigits ( $ birthday , $ sequenceNumber , $ type ) ; return sprintf ( '%02d%02d%02d%03d%02d' , $ year2 , $ month , $ day , $ sequenceNumber , $ check ) ; }
Creates and returns an identification number of the National Register.
Creates and returns an identification number of the National Register .