forked from lemonwaysas/php-client-directkit-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Iban.php
54 lines (46 loc) · 806 Bytes
/
Iban.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace LemonWay\Models;
class Iban{
/**
* ID as defined by Lemon Way
* @var string
*/
public $ID;
/**
* STATUS {0,5,6,8,9}
* @var string
*/
public $STATUS;
/**
* IBAN number
* @var string
*/
public $IBAN;
/**
* BIC or swift code
* @var string
*/
public $BIC;
/**
* DOM1 address line 1
* @var string
*/
public $DOM1;
/**
* DOM2 address line 2
* @var string
*/
public $DOM2;
function __construct($node) {
$this->ID = $node->ID;
if (isset($node->STATUS))
$this->STATUS = $node->STATUS;
if (isset($node->S))
$this->STATUS = $node->S;
if (isset($node->DATA))
$this->IBAN = $node->DATA;
if (isset($node->SWIFT))
$this->BIC = $node->SWIFT;
}
}
?>