@@ -81,7 +81,7 @@ |
||
81 | 81 | /** |
82 | 82 | * @return null|Recipient |
83 | 83 | */ |
84 | - public function getMessageRecipient():?Recipient |
|
84 | + public function getMessageRecipient(): ?Recipient |
|
85 | 85 | { |
86 | 86 | return $this->messageRecipient; |
87 | 87 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * @return null|DateTimeImmutable |
171 | 171 | */ |
172 | - public function getFromDate():?DateTimeImmutable |
|
172 | + public function getFromDate(): ?DateTimeImmutable |
|
173 | 173 | { |
174 | 174 | return $this->fromDate; |
175 | 175 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * @return null|DateTimeImmutable |
187 | 187 | */ |
188 | - public function getToDate():?DateTimeImmutable |
|
188 | + public function getToDate(): ?DateTimeImmutable |
|
189 | 189 | { |
190 | 190 | return $this->toDate; |
191 | 191 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * @return null|ContactDetails |
82 | 82 | */ |
83 | - public function getContactDetails():?ContactDetails |
|
83 | + public function getContactDetails(): ?ContactDetails |
|
84 | 84 | { |
85 | 85 | return $this->contactDetails; |
86 | 86 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * @return null|Identification |
98 | 98 | */ |
99 | - public function getIdentification():?Identification |
|
99 | + public function getIdentification(): ?Identification |
|
100 | 100 | { |
101 | 101 | return $this->identification; |
102 | 102 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | protected function getDefaultMessage() |
13 | 13 | { |
14 | 14 | $dom = new DOMDocument('1.0', 'UTF-8'); |
15 | - $dom->load(__DIR__.'/Camt053/Stubs/camt053.v2.multi.statement.xml'); |
|
15 | + $dom->load(__DIR__ . '/Camt053/Stubs/camt053.v2.multi.statement.xml'); |
|
16 | 16 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
17 | 17 | } |
18 | 18 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | protected function getV2Message() |
15 | 15 | { |
16 | 16 | $dom = new DOMDocument('1.0', 'UTF-8'); |
17 | - $dom->load(__DIR__.'/Stubs/camt054.v2.xml'); |
|
17 | + $dom->load(__DIR__ . '/Stubs/camt054.v2.xml'); |
|
18 | 18 | |
19 | 19 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
20 | 20 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | protected function getV4Message() |
23 | 23 | { |
24 | 24 | $dom = new DOMDocument('1.0', 'UTF-8'); |
25 | - $dom->load(__DIR__.'/Stubs/camt054.v4.xml'); |
|
25 | + $dom->load(__DIR__ . '/Stubs/camt054.v4.xml'); |
|
26 | 26 | |
27 | 27 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
28 | 28 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | protected function getV1Message() |
16 | 16 | { |
17 | 17 | $dom = new DOMDocument('1.0', 'UTF-8'); |
18 | - $dom->load(__DIR__.'/Stubs/camt052.v1.xml'); |
|
18 | + $dom->load(__DIR__ . '/Stubs/camt052.v1.xml'); |
|
19 | 19 | |
20 | 20 | return (new MessageFormat\V01)->getDecoder()->decode($dom); |
21 | 21 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | protected function getV2Message() |
24 | 24 | { |
25 | 25 | $dom = new DOMDocument('1.0', 'UTF-8'); |
26 | - $dom->load(__DIR__.'/Stubs/camt052.v2.xml'); |
|
26 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.xml'); |
|
27 | 27 | |
28 | 28 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
29 | 29 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | protected function getV2OtherAccountMessage() |
32 | 32 | { |
33 | 33 | $dom = new DOMDocument('1.0', 'UTF-8'); |
34 | - $dom->load(__DIR__.'/Stubs/camt052.v2.other-account.xml'); |
|
34 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.other-account.xml'); |
|
35 | 35 | |
36 | 36 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
37 | 37 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | protected function getV4Message() |
40 | 40 | { |
41 | 41 | $dom = new DOMDocument('1.0', 'UTF-8'); |
42 | - $dom->load(__DIR__.'/Stubs/camt052.v4.xml'); |
|
42 | + $dom->load(__DIR__ . '/Stubs/camt052.v4.xml'); |
|
43 | 43 | |
44 | 44 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
45 | 45 | } |
@@ -215,12 +215,12 @@ discard block |
||
215 | 215 | $this->assertEquals('Company Name', $party->getRelatedPartyType()->getName()); |
216 | 216 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
217 | 217 | $this->assertEquals([], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
218 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
218 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
219 | 219 | } elseif ($party->getRelatedPartyType() instanceof DTO\Debtor) { |
220 | 220 | $this->assertEquals('NAME NAME', $party->getRelatedPartyType()->getName()); |
221 | 221 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
222 | 222 | $this->assertEquals(['ADDR ADDR 10', '2000 ANTWERPEN'], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
223 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
223 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
224 | 224 | } |
225 | 225 | } |
226 | 226 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | protected function getV2Message() |
17 | 17 | { |
18 | 18 | $dom = new DOMDocument('1.0', 'UTF-8'); |
19 | - $dom->load(__DIR__.'/Stubs/camt053.v2.minimal.xml'); |
|
19 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.minimal.xml'); |
|
20 | 20 | |
21 | 21 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
22 | 22 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | protected function getV2UltimateMessage() |
25 | 25 | { |
26 | 26 | $dom = new DOMDocument('1.0', 'UTF-8'); |
27 | - $dom->load(__DIR__.'/Stubs/camt053.v2.minimal.ultimate.xml'); |
|
27 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.minimal.ultimate.xml'); |
|
28 | 28 | |
29 | 29 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
30 | 30 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | protected function getV3Message() |
33 | 33 | { |
34 | 34 | $dom = new DOMDocument('1.0', 'UTF-8'); |
35 | - $dom->load(__DIR__.'/Stubs/camt053.v3.xml'); |
|
35 | + $dom->load(__DIR__ . '/Stubs/camt053.v3.xml'); |
|
36 | 36 | |
37 | 37 | return (new MessageFormat\V03)->getDecoder()->decode($dom); |
38 | 38 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | protected function getV4Message() |
41 | 41 | { |
42 | 42 | $dom = new DOMDocument('1.0', 'UTF-8'); |
43 | - $dom->load(__DIR__.'/Stubs/camt053.v4.xml'); |
|
43 | + $dom->load(__DIR__ . '/Stubs/camt053.v4.xml'); |
|
44 | 44 | |
45 | 45 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
46 | 46 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $this->expectException(InvalidMessageException::class); |
51 | 51 | |
52 | 52 | $dom = new DOMDocument('1.0', 'UTF-8'); |
53 | - $dom->load(__DIR__.'/Stubs/camt053.v2.wrong.xml'); |
|
53 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.wrong.xml'); |
|
54 | 54 | |
55 | 55 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
56 | 56 | } |
@@ -58,21 +58,21 @@ discard block |
||
58 | 58 | public function testFiveDecimalsStatement() |
59 | 59 | { |
60 | 60 | $dom = new DOMDocument('1.0', 'UTF-8'); |
61 | - $dom->load(__DIR__.'/Stubs/camt053.v2.five.decimals.xml'); |
|
61 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.five.decimals.xml'); |
|
62 | 62 | $this->assertInstanceOf(Message::class, (new MessageFormat\V02)->getDecoder()->decode($dom)); |
63 | 63 | } |
64 | 64 | |
65 | 65 | public function testV3Document() |
66 | 66 | { |
67 | 67 | $dom = new DOMDocument('1.0', 'UTF-8'); |
68 | - $dom->load(__DIR__.'/Stubs/camt053.v3.xml'); |
|
68 | + $dom->load(__DIR__ . '/Stubs/camt053.v3.xml'); |
|
69 | 69 | $this->assertInstanceOf(Message::class, (new MessageFormat\V03)->getDecoder()->decode($dom)); |
70 | 70 | } |
71 | 71 | |
72 | 72 | public function testV4Document() |
73 | 73 | { |
74 | 74 | $dom = new DOMDocument('1.0', 'UTF-8'); |
75 | - $dom->load(__DIR__.'/Stubs/camt053.v4.xml'); |
|
75 | + $dom->load(__DIR__ . '/Stubs/camt053.v4.xml'); |
|
76 | 76 | $this->assertInstanceOf(Message::class, (new MessageFormat\V04)->getDecoder()->decode($dom)); |
77 | 77 | } |
78 | 78 |