This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1015 from okj579/iban
IBAN Formatters for New Locales
- Loading branch information
Showing
5 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Faker\Provider\ar_SA; | ||
|
||
class Payment extends \Faker\Provider\Payment | ||
{ | ||
/** | ||
* International Bank Account Number (IBAN) | ||
* @link http://en.wikipedia.org/wiki/International_Bank_Account_Number | ||
* @param string $prefix for generating bank account number of a specific bank | ||
* @param string $countryCode ISO 3166-1 alpha-2 country code | ||
* @param integer $length total length without country code and 2 check digits | ||
* @return string | ||
*/ | ||
public static function bankAccountNumber($prefix = '', $countryCode = 'SA', $length = null) | ||
{ | ||
return static::iban($countryCode, $prefix, $length); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Faker\Provider\he_IL; | ||
|
||
class Payment extends \Faker\Provider\Payment | ||
{ | ||
/** | ||
* International Bank Account Number (IBAN) | ||
* @link http://en.wikipedia.org/wiki/International_Bank_Account_Number | ||
* @param string $prefix for generating bank account number of a specific bank | ||
* @param string $countryCode ISO 3166-1 alpha-2 country code | ||
* @param integer $length total length without country code and 2 check digits | ||
* @return string | ||
*/ | ||
public static function bankAccountNumber($prefix = '', $countryCode = 'IL', $length = null) | ||
{ | ||
return static::iban($countryCode, $prefix, $length); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Faker\Provider\hr_HR; | ||
|
||
class Payment extends \Faker\Provider\Payment | ||
{ | ||
/** | ||
* International Bank Account Number (IBAN) | ||
* @link http://en.wikipedia.org/wiki/International_Bank_Account_Number | ||
* @param string $prefix for generating bank account number of a specific bank | ||
* @param string $countryCode ISO 3166-1 alpha-2 country code | ||
* @param integer $length total length without country code and 2 check digits | ||
* @return string | ||
*/ | ||
public static function bankAccountNumber($prefix = '', $countryCode = 'HR', $length = null) | ||
{ | ||
return static::iban($countryCode, $prefix, $length); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Faker\Provider\lt_LT; | ||
|
||
class Payment extends \Faker\Provider\Payment | ||
{ | ||
/** | ||
* International Bank Account Number (IBAN) | ||
* @link http://en.wikipedia.org/wiki/International_Bank_Account_Number | ||
* @param string $prefix for generating bank account number of a specific bank | ||
* @param string $countryCode ISO 3166-1 alpha-2 country code | ||
* @param integer $length total length without country code and 2 check digits | ||
* @return string | ||
*/ | ||
public static function bankAccountNumber($prefix = '', $countryCode = 'LT', $length = null) | ||
{ | ||
return static::iban($countryCode, $prefix, $length); | ||
} | ||
} |