Skip to content

Interface SepaCntryValidation

Stefan Kientzler edited this page Aug 18, 2021 · 5 revisions

Full name:     \SKien\Sepa\CntryValidation\SepaCntryValidation


Interface for the country specific validation classes.

All classes to define the country specific validation of IBAN, BIC and CI must implement this interface.

Overview

Method Description
__construct Create instance of validation.
validateBIC Validates given BIC.
validateCI Validates given CI (Creditor Scheme Identification).
validateIBAN Validates given IBAN.

Methods

__construct

Create instance of validation.

public SepaCntryValidation::__construct(string $strCntry)

Parameters:

Parameter Type Description
strCntry string 2 sign country code (ISO 3166-1)

[go to top]


validateBIC

Validates given BIC.

public SepaCntryValidation::validateBIC(string $strBIC) : int

Parameters:

Parameter Type Description
strBIC string BIC to validate

Return Type: int

OK ( 0 ) or errorcode

[go to top]


validateCI

Validates given CI (Creditor Scheme Identification).

public SepaCntryValidation::validateCI(string $strCI) : int

Parameters:

Parameter Type Description
strCI string CI to validate

Return Type: int

OK ( 0 ) or errorcode

[go to top]


validateIBAN

Validates given IBAN.

public SepaCntryValidation::validateIBAN(string $strIBAN) : int

Parameters:

Parameter Type Description
strIBAN string IBAN to validate

Return Type: int

OK ( 0 ) or errorcode

[go to top]


Clone this wiki locally