Address.php
5 years ago
Color.php
5 years ago
Company.php
5 years ago
DateTime.php
5 years ago
Internet.php
5 years ago
Payment.php
5 years ago
Person.php
5 years ago
PhoneNumber.php
5 years ago
Payment.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\zh_CN; |
| 4 | |
| 5 | class Payment extends \Faker\Provider\Payment |
| 6 | { |
| 7 | /** |
| 8 | * @see https://zh.wikipedia.org/wiki/%E4%B8%AD%E5%9B%BD%E9%93%B6%E8%A1%8C%E5%88%97%E8%A1%A8 |
| 9 | * @var array |
| 10 | */ |
| 11 | protected static $banks = array( |
| 12 | '渤海银行', |
| 13 | '广发银行', |
| 14 | '国家开发银行', |
| 15 | '恒丰银行', |
| 16 | '华夏银行', |
| 17 | '交通银行', |
| 18 | '平安银行', |
| 19 | '上海浦东发展银行', |
| 20 | '� |
| 21 | �业银行', |
| 22 | '招商银行', |
| 23 | '浙商银行', |
| 24 | '中国工商银行', |
| 25 | '中国� |
| 26 | �大银行', |
| 27 | '中国建设银行', |
| 28 | '中国民生银行', |
| 29 | '中国农业银行', |
| 30 | '中国银行', |
| 31 | '中国邮政储蓄银行', |
| 32 | '中信银行', |
| 33 | ); |
| 34 | |
| 35 | /** |
| 36 | * @example '中国建设银行' |
| 37 | * @return string |
| 38 | */ |
| 39 | public static function bank() |
| 40 | { |
| 41 | return static::randomElement(static::$banks); |
| 42 | } |
| 43 | } |
| 44 |