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

Camt053V03::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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