Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1181 from spaghettimaster/master
Browse files Browse the repository at this point in the history
Added uk_UA Payment provider with bank  name generator
  • Loading branch information
fzaninotto authored Apr 6, 2017
2 parents 3366f1b + f103530 commit f26b221
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,15 @@ echo $faker->personalIdentityNumber('female') // '950910-0781'
echo $faker->bank; // '中国建设银行'
```

### `Faker\Provider\uk_UA\Payment`

```php
<?php

// Generates an Ukraine bank name (based on list of real Ukraine banks)
echo $faker->bank; // "Ощадбанк"
```

### `Faker\Provider\zh_TW\Person`

```php
Expand Down
67 changes: 67 additions & 0 deletions src/Faker/Provider/uk_UA/Payment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?php

namespace Faker\Provider\uk_Ua;

class Payment extends \Faker\Provider\Payment
{
/**
* @see list of Ukraine banks (2017-29-03), source: https://uk.wikipedia.org/wiki/%D0%91%D0%B0%D0%BD%D0%BA%D0%B8_%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D0%B8
*/
protected static $banks = array(
'А-Банк',
'Авангард',
'Альфа-Банк',
'Альянс',
'Апекс-банк',
'Банк 3/4',
'БТА Банк',
'VS Bank',
'ВТБ',
'Глобус',
'Діамантбанк',
'Deutsche Bank',
'Ідея Банк',
'ING',
'Індустріалбанк',
'Кредит Європа Банк',
'Crédit Agricole',
'Кредобанк',
'Львів',
'Мегабанк',
'МетаБанк',
'Міжнародний інвестиційний банк',
'Оксі Банк',
'OTP Bank',
'Ощадбанк',
'Перший Інвестиційний Банк',
'Південний',
'Piraeus Bank',
'Правекс-Банк',
'ПриватБанк',
'ПроКредит Банк',
'Промінвестбанк',
'ПУМБ',
'Радабанк',
'Райффайзен Аваль',
'Сбербанк',
'SEB',
'Сітібанк',
'Укргазбанк',
'Укрексімбанк',
'УкрСиббанк',
'Укрсоцбанк',
'Універсал Банк',
'Фамільний',
'Forward Bank',
'Центр',
'Unex'
);

/**
* @example 'Сітібанк'
*/
public static function bank()
{
return static::randomElement(static::$banks);
}
}

0 comments on commit f26b221

Please sign in to comment.