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

Added uk_UA Payment provider with bank name generator #1181

Merged
merged 2 commits into from
Apr 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}