A "Generic National Identification Number" could be used when needing to handle a language that is not yet supported by this library. This generic NIN will function as any for supported countries, however there will be no validation that the number is correct.
class GenericNationalIdentificationNumber implements NationalIdentificationNumberInterface
{
public function __construct(string $nin, string $countryCode) { ... }
// ...
}
$nin = new GenericNationalIdentificationNumber('123notreal', 'PL');
echo $nin; // '123notreal'
echo $nin->getCountryCode(); // 'PL'
In the long run the generic NIN will be replaced with proper identification numbers for each country.
A "Generic National Identification Number" could be used when needing to handle a language that is not yet supported by this library. This generic NIN will function as any for supported countries, however there will be no validation that the number is correct.
In the long run the generic NIN will be replaced with proper identification numbers for each country.