author |
Esser Jan |
---|---|
license |
MIT |
package |
Default |
__construct(string $countryCode, integer $check, string $bban)
string
country code using ISO 3166-1 alpha-2 - two letters
integer
check digits - two digits
string
Basic Bank Account Number (BBAN) - up to 30 alphanumeric characters that
are country-specific. No special characters like -
or space allowed here, use
the {@see createFromString} or {@see sanitize} instead if that's what you may have
__toString()
createFromString( $accountNumber)
getIBANLengths()
sanitize(string $accountNumber) : string
string
string
setIBANLengths(array $IBANLengths)
array
toFormattedString(string $separator = ' ', integer $size = 4, boolean $prefix = false) : string
string
supported separators are white spaces (regex \s) and hyphen (-) all other separators will not be able to be converted back into objects, a combination may be used.
integer
the separator group size to use, this will chunk
boolean
when true IBAN
will be prefixed
string
validateSelf()
The preferred algorithm is:
countryCode :
check :
bban :
IBANLengths : array
var |
---|
array