Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Faker\Provider\kk_KZ;
4
 
5
class Payment extends \Faker\Provider\Payment
6
{
7
    protected static $banks = [
8
        'Қазкоммерцбанк',
9
        'Халық Банкі',
10
    ];
11
 
12
    /**
13
     * @example 'Қазкоммерцбанк'
14
     */
15
    public static function bank()
16
    {
17
        return static::randomElement(static::$banks);
18
    }
19
 
20
    /**
21
     * International Bank Account Number (IBAN)
22
     *
23
     * @see http://en.wikipedia.org/wiki/International_Bank_Account_Number
24
     *
25
     * @param string $prefix      for generating bank account number of a specific bank
26
     * @param string $countryCode ISO 3166-1 alpha-2 country code
27
     * @param int    $length      total length without country code and 2 check digits
28
     *
29
     * @return string
30
     */
31
    public static function bankAccountNumber($prefix = '', $countryCode = 'KZ', $length = null)
32
    {
33
        return static::iban($countryCode, $prefix, $length);
34
    }
35
}