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 #1000 from akramfares/master
Browse files Browse the repository at this point in the history
Add bankAccountNumber implementations
  • Loading branch information
fzaninotto authored Nov 29, 2016
2 parents b04c5b4 + 1677118 commit dfdfbbd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Faker/Provider/at_AT/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,17 @@ public static function vat($spacedNationalPrefix = true)

return sprintf("%s%d", $prefix, self::randomNumber(8, true));
}

/**
* 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 = 'AT', $length = null)
{
return static::iban($countryCode, $prefix, $length);
}
}

0 comments on commit dfdfbbd

Please sign in to comment.