Completed
Pull Request — master (#20)
by Yann
02:45
created

Message   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
addRecords() 0 1 ?
1
<?php
2
3
namespace Genkgo\Camt\Decoder;
4
5
use DateTimeImmutable;
6
use SimpleXMLElement;
7
use Genkgo\Camt\DTO;
8
use Genkgo\Camt\Iban;
9
10
abstract class Message
11
{
12
    /**
13
     * @var Record
14
     */
15
    protected $recordDecoder;
16
17 18
    public function __construct(Record $recordDecoder)
18
    {
19 18
        $this->recordDecoder = $recordDecoder;
20 18
    }
21
22
    /**
23
     * @param DTO\Message      $message
24
     * @param SimpleXMLElement $document
25
     */
26
    abstract public function addRecords(DTO\Message $message, SimpleXMLElement $document);
27
}
28