1 | <?php |
||
11 | class RemittanceInformation |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $message; |
||
17 | |||
18 | /** |
||
19 | * @var CreditorReferenceInformation |
||
20 | */ |
||
21 | private $creditorReferenceInformation; |
||
22 | |||
23 | /** |
||
24 | * @var StructuredRemittanceInformation[] |
||
25 | */ |
||
26 | private $structuredBlocks = []; |
||
27 | |||
28 | /** |
||
29 | * @var UnstructuredRemittanceInformation[] |
||
30 | */ |
||
31 | private $unstructuredBlocks = []; |
||
32 | |||
33 | /** |
||
34 | * @param $message |
||
35 | * @return static |
||
36 | */ |
||
37 | public static function fromUnstructured($message) |
||
43 | |||
44 | /** |
||
45 | * @return CreditorReferenceInformation |
||
46 | */ |
||
47 | 13 | public function getCreditorReferenceInformation() |
|
51 | |||
52 | /** |
||
53 | * @param CreditorReferenceInformation $creditorReferenceInformation |
||
54 | */ |
||
55 | 13 | public function setCreditorReferenceInformation($creditorReferenceInformation) |
|
60 | |||
61 | /** |
||
62 | * @deprecated Use getStructuredBlocks method instead |
||
63 | * @return string |
||
64 | */ |
||
65 | 11 | public function getMessage() |
|
69 | |||
70 | /** |
||
71 | * @deprecated Use addStructuredBlock method instead |
||
72 | * @param string $message |
||
73 | */ |
||
74 | 10 | public function setMessage($message) |
|
78 | |||
79 | /** |
||
80 | * @param StructuredRemittanceInformation $structuredRemittanceInformation |
||
81 | */ |
||
82 | 13 | public function addStructuredBlock(StructuredRemittanceInformation $structuredRemittanceInformation) |
|
86 | |||
87 | /** |
||
88 | * @return StructuredRemittanceInformation[] |
||
89 | */ |
||
90 | 1 | public function getStructuredBlocks() |
|
94 | |||
95 | /** |
||
96 | * @return StructuredRemittanceInformation |
||
97 | */ |
||
98 | 1 | public function getStructuredBlock() |
|
106 | |||
107 | /** |
||
108 | * @param UnstructuredRemittanceInformation $unstructuredRemittanceInformation |
||
109 | */ |
||
110 | 10 | public function addUnstructuredBlock(UnstructuredRemittanceInformation $unstructuredRemittanceInformation) |
|
114 | |||
115 | /** |
||
116 | * @return UnstructuredRemittanceInformation[] |
||
117 | */ |
||
118 | 1 | public function getUnstructuredBlocks() |
|
122 | |||
123 | /** |
||
124 | * @return UnstructuredRemittanceInformation |
||
125 | */ |
||
126 | 1 | public function getUnstructuredBlock() |
|
134 | } |
||
135 |