class PhoneNumber: YamlFakeDataProvider<PhoneNumber>

FakeDataProvider implementation for YamlCategory.PHONE_NUMBER category.

Fields

Name Description
protected yamlCategory: override

Category for this fake yaml data provider class.

This is the key entry after the faker key in .yml locale file.

For example address.yml file has the following structure:


en:
  faker:
    address:

then the yamlCategory would be YamlCategory.ADDRESS

NB! If the secondaryCategory is NOT set,the dictionary filename should match the yamlCategory name,i.e. the file name should be address.yml for the YamlCategory.ADDRESS.

protected localUniqueDataProvider: LocalUniqueDataProvider<PhoneNumber>

A LocalUniqueDataProvider instance that is used with this unique provider.

val unique: PhoneNumber

An instance of T for generating unique values

val cellPhone: by lazy { CellPhone(fakerService) }

Methods

areaCode

fun areaCode(): resolve("area_code")

ReturnValue

Name Description
resolve("area_code")

countryCode

fun countryCode(): resolve("country_code")

ReturnValue

Name Description
resolve("country_code")

exchangeCode

fun exchangeCode(): resolve("exchange_code")

ReturnValue

Name Description
resolve("exchange_code")

phoneNumber

fun phoneNumber(): with(fakerService) { resolve("formats").numerify() }

ReturnValue

Name Description
with(fakerService) { resolve("formats").numerify() }

extension

fun extension(): with(fakerService) { resolve("extension").numerify() }

ReturnValue

Name Description
with(fakerService) { resolve("extension").numerify() }

subscriberNumber

fun subscriberNumber(): with(fakerService) { resolve("subscriber_number").numerify() }

ReturnValue

Name Description
with(fakerService) { resolve("subscriber_number").numerify() }