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\el_CY;
4
 
5
class Payment extends \Faker\Provider\Payment
6
{
7
    /**
8
     * International Bank Account Number (IBAN).
9
     *
10
     * @see http://en.wikipedia.org/wiki/International_Bank_Account_Number
11
     *
12
     * @param string $prefix      for generating bank account number of a specific bank
13
     * @param string $countryCode ISO 3166-1 alpha-2 country code
14
     * @param int    $length      total length without country code and 2 check digits
15
     *
16
     * @return string
17
     */
18
    public static function bankAccountNumber($prefix = '', $countryCode = 'CY', $length = null)
19
    {
20
        return static::iban($countryCode, $prefix, $length);
21
    }
22
 
23
    /**
24
     * @var array Cyprus banks
25
     *
26
     * @see http://www.acb.com.cy/cgibin/hweb?-A=206&-V=membership
27
     */
28
    protected static $banks = [
29
        'Τράπεζα Κύπρου',
30
        'Ελληνική Τράπεζα',
31
        'Alpha Bank Cyprus',
32
        'Εθνική Τράπεζα της Ελλάδος (Κύπρου)',
33
        'USB BANK',
34
        'Κυπριακή Τράπεζα Αναπτύξεως',
35
        'Societe Gererale Cyprus',
36
        'Τράπεζα Πειραιώς (Κύπρου)',
37
        'RCB Bank',
38
        'Eurobank Cyprus',
39
        'Συνεργατική Κεντρική Τράπεζα',
40
        'Ancoria Bank',
41
    ];
42
 
43
    /**
44
     * @example 'Τράπεζα Κύπρου'
45
     */
46
    public static function bank()
47
    {
48
        return static::randomElement(static::$banks);
49
    }
50
}