The {@link PhoneNumberUtil} is implemented as a singleton. Therefore, calling getInstance multiple times will only result in one instance being created.
public static getInstance ( string $baseFileLocation = self::META_DATA_FILE_PREFIX, array $countryCallingCodeToRegionCodeMap = null, libphonenumber\MetadataLoaderInterface $metadataLoader = null, libphonenumber\MetadataSourceInterface $metadataSource = null ) : |
||
$baseFileLocation | string | |
$countryCallingCodeToRegionCodeMap | array | |
$metadataLoader | libphonenumber\MetadataLoaderInterface | |
$metadataSource | libphonenumber\MetadataSourceInterface | |
Résultat | instance |