Skip to content

BankAccount

Pieter Hordijk edited this page Dec 30, 2018 · 9 revisions

TOC

Albania

Validates the input (string) to be a valid Albanian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Albania;

(new Albania())->validate('AL47212110090000000235698741');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Albania when the validated value is not a valid Albanian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Andorra

Validates the input (string) to be a valid Andorran IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Andorra;

(new Andorra())->validate('AD1200012030200359100100');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Andorra when the validated value is not a valid Andorran IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid

Austria

Validates the input (string) to be a valid Austrian IBAN code.

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\BankAccount\Iban\Country\Austria;

(new Austria())->validate('AT611904300234573201');

Failure reasons

  • Type.String when the validated value is not a string
  • BankAccount.Iban.Country.Austria when the validated value is not a valid Austrian IBAN code
  • BankAccount.Iban.Checksum when the validated value's checksum digit is not valid
Clone this wiki locally