1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Genkgo\Camt\DTO; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class RemittanceInformation |
7
|
|
|
* @package Genkgo\Camt\DTO |
8
|
|
|
*/ |
9
|
|
|
class RemittanceInformation |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* @var string |
13
|
|
|
*/ |
14
|
|
|
private $message; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var CreditorReferenceInformation |
18
|
|
|
*/ |
19
|
|
|
private $creditorReferenceInformation; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var StructuredRemittanceInformation |
23
|
|
|
*/ |
24
|
|
|
private $structuredRemittanceInformation; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var UnstructuredRemittanceInformation |
28
|
|
|
*/ |
29
|
|
|
private $unstructuredRemittanceInformation; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @param $message |
33
|
|
|
* @return static |
34
|
|
|
*/ |
35
|
|
|
public static function fromUnstructured($message) |
36
|
|
|
{ |
37
|
|
|
$information = new static; |
38
|
|
|
$information->message = $message; |
39
|
|
|
return $information; |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @return CreditorReferenceInformation |
44
|
|
|
*/ |
45
|
1 |
|
public function getCreditorReferenceInformation() |
46
|
|
|
{ |
47
|
1 |
|
return $this->creditorReferenceInformation; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @param CreditorReferenceInformation $creditorReferenceInformation |
52
|
|
|
*/ |
53
|
13 |
|
public function setCreditorReferenceInformation($creditorReferenceInformation) |
54
|
|
|
{ |
55
|
13 |
|
$this->creditorReferenceInformation = $creditorReferenceInformation; |
56
|
13 |
|
$this->message = $creditorReferenceInformation->getRef(); |
57
|
13 |
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @return string |
61
|
|
|
*/ |
62
|
3 |
|
public function getMessage() |
63
|
|
|
{ |
64
|
3 |
|
return $this->message; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @param string $message |
69
|
|
|
*/ |
70
|
10 |
|
public function setMessage($message) |
71
|
|
|
{ |
72
|
10 |
|
$this->message = $message; |
73
|
10 |
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @return StructuredRemittanceInformation |
77
|
|
|
*/ |
78
|
1 |
|
public function getStructuredRemittanceInformation() |
79
|
|
|
{ |
80
|
1 |
|
return $this->structuredRemittanceInformation; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @param StructuredRemittanceInformation $structuredRemittanceInformation |
85
|
|
|
*/ |
86
|
13 |
|
public function setStructuredRemittanceInformation( |
87
|
|
|
StructuredRemittanceInformation $structuredRemittanceInformation) |
88
|
|
|
{ |
89
|
13 |
|
$this->structuredRemittanceInformation = $structuredRemittanceInformation; |
90
|
13 |
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @return UnstructuredRemittanceInformation |
94
|
|
|
*/ |
95
|
1 |
|
public function getUnstructuredRemittanceInformation() |
96
|
|
|
{ |
97
|
1 |
|
return $this->unstructuredRemittanceInformation; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @param UnstructuredRemittanceInformation $unstructuredRemittanceInformation |
102
|
|
|
*/ |
103
|
10 |
|
public function setUnstructuredRemittanceInformation( |
104
|
|
|
UnstructuredRemittanceInformation $unstructuredRemittanceInformation) |
105
|
|
|
{ |
106
|
10 |
|
$this->unstructuredRemittanceInformation = $unstructuredRemittanceInformation; |
107
|
10 |
|
} |
108
|
|
|
} |
109
|
|
|
|