1 | <?php |
||
10 | class IID implements FinancialInstitutionInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $iid; |
||
16 | |||
17 | /** |
||
18 | * Constructor |
||
19 | * |
||
20 | * @param string $iid |
||
21 | * |
||
22 | * @throws \InvalidArgumentException When the IID does contain invalid characters or the length does not match. |
||
23 | */ |
||
24 | public function __construct($iid) |
||
33 | |||
34 | /** |
||
35 | * Extracts the IID from an IBAN |
||
36 | * |
||
37 | * @param IBAN $iban |
||
38 | * |
||
39 | * @throws \InvalidArgumentException When the supplied IBAN is not from Switzerland |
||
40 | */ |
||
41 | public static function fromIBAN(IBAN $iban) |
||
49 | |||
50 | /** |
||
51 | * Returns a formatted representation of the BIC |
||
52 | * |
||
53 | * @return string The formatted BIC |
||
54 | */ |
||
55 | public function format() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function asDom(\DOMDocument $doc) |
||
75 | } |
||
76 |