Inherits Faker\Provider\Base.
Inherited by Faker\Provider\ar_SA\Payment, Faker\Provider\at_AT\Payment, Faker\Provider\bg_BG\Payment, Faker\Provider\cs_CZ\Payment, Faker\Provider\da_DK\Payment, Faker\Provider\de_AT\Payment, Faker\Provider\de_CH\Payment, Faker\Provider\de_DE\Payment, Faker\Provider\el_CY\Payment, Faker\Provider\el_GR\Payment, Faker\Provider\en_GB\Payment, Faker\Provider\en_US\Payment, Faker\Provider\es_ES\Payment, Faker\Provider\fi_FI\Payment, Faker\Provider\fr_BE\Payment, Faker\Provider\fr_CH\Payment, Faker\Provider\fr_FR\Payment, Faker\Provider\he_IL\Payment, Faker\Provider\hr_HR\Payment, Faker\Provider\hu_HU\Payment, Faker\Provider\is_IS\Payment, Faker\Provider\it_CH\Payment, Faker\Provider\it_IT\Payment, Faker\Provider\ka_GE\Payment, Faker\Provider\kk_KZ\Payment, Faker\Provider\lt_LT\Payment, Faker\Provider\lv_LV\Payment, Faker\Provider\me_ME\Payment, Faker\Provider\ms_MY\Payment, Faker\Provider\nb_NO\Payment, Faker\Provider\nl_BE\Payment, Faker\Provider\nl_NL\Payment, Faker\Provider\pl_PL\Payment, Faker\Provider\pt_BR\Payment, Faker\Provider\pt_PT\Payment, Faker\Provider\ro_MD\Payment, Faker\Provider\ro_RO\Payment, Faker\Provider\ru_RU\Payment, Faker\Provider\sk_SK\Payment, Faker\Provider\sl_SI\Payment, Faker\Provider\sr_Cyrl_RS\Payment, Faker\Provider\sr_Latn_RS\Payment, Faker\Provider\sr_RS\Payment, Faker\Provider\sv_SE\Payment, Faker\Provider\th_TH\Payment, Faker\Provider\tr_TR\Payment, Faker\Provider\uk_UA\Payment, Faker\Provider\zh_CN\Payment, and Faker\Provider\zh_TW\Payment.
|
static | creditCardType () |
|
static | creditCardNumber ($type=null, $formatted=false, $separator='-') |
|
static | iban ($countryCode=null, $prefix='', $length=null) |
|
static | swiftBicNumber () |
|
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 | $expirationDateFormat = "m/y" |
|
|
static | $cardVendors |
|
static | $cardParams |
|
static | $ibanFormats |
|
◆ creditCardDetails()
Faker\Provider\Payment::creditCardDetails |
( |
|
$valid = true | ) |
|
- Parameters
-
boolean | $valid | True (by default) to get a valid expiration date, false to get a maybe valid date |
- Returns
- array
Reimplemented in Faker\Provider\zh_TW\Payment.
◆ iban()
static Faker\Provider\Payment::iban |
( |
|
$countryCode = null , |
|
|
|
$prefix = '' , |
|
|
|
$length = null |
|
) |
| |
|
static |
◆ $cardVendors
Faker\Provider\Payment::$cardVendors |
|
staticprotected |
Initial value:= array(
'Visa', 'Visa', 'Visa', 'Visa', 'Visa',
'MasterCard', 'MasterCard', 'MasterCard', 'MasterCard', 'MasterCard',
'American Express', 'Discover Card', 'Visa Retired'
)
The documentation for this class was generated from the following file:
- vendor/fzaninotto/faker/src/Faker/Provider/Payment.php