Completed
Push — master ( aabf4d...606f02 )
by Frederik
9s
created

Camt053V03   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 50%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 5
dl 0
loc 39
ccs 6
cts 12
cp 0.5
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getXmlNs() 0 4 1
A getMsgId() 0 4 1
A getName() 0 4 1
A getDecoder() 0 9 1
1
<?php
2
3
namespace Genkgo\Camt\Camt053\MessageFormat;
4
5
use Genkgo\Camt\Camt053\Decoder;
6
use Genkgo\Camt\DecoderInterface;
7
use Genkgo\Camt\MessageFormatInterface;
8
9
/**
10
 * Class MessageFormat
11
 * @package Genkgo\Camt\Camt053V3
12
 */
13
final class Camt053V03 implements MessageFormatInterface
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getXmlNs()
19
    {
20
        return 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.03';
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getMsgId()
27
    {
28
        return 'camt.053.001.03';
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getName()
35
    {
36
        return 'BankToCustomerStatementV03';
37
    }
38
39
    /**
40
     * @return DecoderInterface
41
     */
42 2
    public function getDecoder()
43
    {
44 2
        $entryTransactionDetailDecoder = new Decoder\EntryTransactionDetail();
45 2
        $entryDecoder                  = new Decoder\Entry($entryTransactionDetailDecoder);
46 2
        $statementDecoder              = new Decoder\Statement($entryDecoder);
47 2
        $messageDecoder                = new Decoder\Message($statementDecoder);
48
49 2
        return new Decoder($messageDecoder, '/assets/camt.053.001.03.xsd');
50
    }
51
}
52