View Source Faker.Phone.PtPt (Faker v0.18.0)
Functions for generating phone related data for portugal location
Summary
Functions
Returns a random cell phone number
Returns a random landline phone number
Returns a random phone number.
Functions
@spec cell_number() :: String.t()
Returns a random cell phone number
Examples
iex> Faker.Phone.PtPt.cell_number()
"919999999"
iex> Faker.Phone.PtPt.cell_number()
"929999999"
iex> Faker.Phone.PtPt.cell_number()
"939999999"
iex> Faker.Phone.PtPt.cell_number()
"969999999"
@spec landline_number() :: String.t()
Returns a random landline phone number
Examples
iex> Faker.Phone.PtPt.landline_number()
"299999999"
iex> Faker.Phone.PtPt.landline_number()
"299999998"
iex> Faker.Phone.PtPt.landline_number()
"399999999"
iex> Faker.Phone.PtPt.landline_number()
"399999998"
@spec number() :: String.t()
Returns a random phone number.
Examples
iex> Faker.Phone.PtPt.number()
"929999999"
iex> Faker.Phone.PtPt.number()
"919999999"
iex> Faker.Phone.PtPt.number()
"234999999"
iex> Faker.Phone.PtPt.number()
"939999999"