|
| static | areaCode () |
| |
| static | cellphone ($formatted=true) |
| |
| static | landline ($formatted=true) |
| |
| static | phone ($formatted=true) |
| |
| static | cellphoneNumber ($formatted=true) |
| |
| static | landlineNumber ($formatted=true) |
| |
| static | phoneNumberCleared () |
| |
| static | randomDigit () |
| |
| static | randomDigitNotNull () |
| |
| static | randomDigitNot ($except) |
| |
|
static | randomNumber ($nbDigits=null, $strict=false) |
| |
|
static | randomFloat ($nbMaxDecimals=null, $min=0, $max=null) |
| |
|
static | numberBetween ($int1=0, $int2=2147483647) |
| |
| static | passthrough ($value) |
| |
| static | randomLetter () |
| |
| static | randomAscii () |
| |
| static | randomElements ($array=array('a', 'b', 'c'), $count=1, $allowDuplicates=false) |
| |
| static | randomElement ($array=array('a', 'b', 'c')) |
| |
| static | randomKey ($array=array()) |
| |
|
static | shuffle ($arg='') |
| |
|
static | shuffleArray ($array=array()) |
| |
|
static | shuffleString ($string='', $encoding='UTF-8') |
| |
| static | numerify ($string='###') |
| |
| static | lexify ($string='????') |
| |
| static | bothify ($string='## ??') |
| |
|
static | asciify ($string=' ****') |
| |
|
static | regexify ($regex='') |
| |
| static | toLower ($string='') |
| |
| static | toUpper ($string='') |
| |
|
|
static | $landlineFormats = array('2###-####', '3###-####', '4###-####') |
| |
| static | $cellphoneFormats = array('9####-####') |
| |
|
static | $formats = array('###-###-###') |
| |
◆ anyPhoneNumber()
| static Faker\Provider\pt_BR\PhoneNumber::anyPhoneNumber |
( |
|
$type, |
|
|
|
$formatted = true |
|
) |
| |
|
staticprotected |
Generates a complete phone number.
- Parameters
-
| string | $type | [def: landline] One of "landline" or "cellphone". Defaults to "landline" on invalid values. |
| bool | $formatted | [def: true] If the number should be formatted or not. |
- Returns
- string
◆ areaCode()
| static Faker\Provider\pt_BR\PhoneNumber::areaCode |
( |
| ) |
|
|
static |
Generates a 2-digit area code not composed by zeroes. string
◆ cellphone()
| static Faker\Provider\pt_BR\PhoneNumber::cellphone |
( |
|
$formatted = true | ) |
|
|
static |
Generates a 9-digit cellphone number without formatting characters.
- Parameters
-
| bool | $formatted | [def: true] If it should return a formatted number or not. |
- Returns
- string
◆ cellphoneNumber()
| static Faker\Provider\pt_BR\PhoneNumber::cellphoneNumber |
( |
|
$formatted = true | ) |
|
|
static |
Concatenates areaCode and cellphone into a national cellphone number.
- Parameters
-
| bool | $formatted | [def: true] If it should return a formatted number or not. |
- Returns
- string
◆ landline()
| static Faker\Provider\pt_BR\PhoneNumber::landline |
( |
|
$formatted = true | ) |
|
|
static |
Generates an 9-digit landline number without formatting characters.
- Parameters
-
| bool | $formatted | [def: true] If it should return a formatted number or not. |
- Returns
- string
◆ landlineNumber()
| static Faker\Provider\pt_BR\PhoneNumber::landlineNumber |
( |
|
$formatted = true | ) |
|
|
static |
Concatenates areaCode and landline into a national landline number.
- Parameters
-
| bool | $formatted | [def: true] If it should return a formatted number or not. |
- Returns
- string
◆ phone()
| static Faker\Provider\pt_BR\PhoneNumber::phone |
( |
|
$formatted = true | ) |
|
|
static |
Randomizes between cellphone and landline numbers.
- Parameters
-
| bool | $formatted | [def: true] If it should return a formatted number or not. |
- Returns
- mixed
◆ phoneNumber()
| Faker\Provider\pt_BR\PhoneNumber::phoneNumber |
( |
| ) |
|
◆ phoneNumberCleared()
| static Faker\Provider\pt_BR\PhoneNumber::phoneNumberCleared |
( |
| ) |
|
|
static |
Randomizes between complete cellphone and landline numbers, cleared from formatting symbols.
- Returns
- mixed
◆ $cellphoneFormats
| Faker\Provider\pt_BR\PhoneNumber::$cellphoneFormats = array('9####-####') |
|
staticprotected |
The documentation for this class was generated from the following file:
- vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/PhoneNumber.php