class BankAccountNumber

Constants

FORMATS

Methods

__construct(string $iban)

Create a new bank account instance.

string
countryCode()

Get the country code.

string
iban()

Get the iban.

string
lastFour()

Get the last four digits.

string
canonicalize(string $iban)

Canonicalize the given value.

string
format()

Get the matching regular expression format.

void
validate()

Validate the given value.

string
__toString()

Cast the object to an reinitialisable string.

Details

at line 118
__construct(string $iban)

Create a new bank account instance.

Parameters

string $iban

at line 130
string countryCode()

Get the country code.

Return Value

string

at line 140
string iban()

Get the iban.

Return Value

string

at line 150
string lastFour()

Get the last four digits.

Return Value

string

at line 161
protected string canonicalize(string $iban)

Canonicalize the given value.

Parameters

string $iban

Return Value

string

at line 171
protected string format()

Get the matching regular expression format.

Return Value

string

at line 181
protected void validate()

Validate the given value.

Return Value

void

at line 201
string __toString()

Cast the object to an reinitialisable string.

Return Value

string