Completed
Push — master ( ecf895...d8752e )
by Hannes
03:16
created

OpeningRecord   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace byrokrat\autogiro\Record;
6
7
use byrokrat\banking\Bankgiro;
8
9
/**
10
 * Standard opening record implementation
11
 */
12
class OpeningRecord extends Record
13
{
14 1
    public function __construct(string $layout, \DateTimeImmutable $date, Bankgiro $bankgiro, string $customerNr = '')
15
    {
16 1
        $this['layout'] = $layout;
17 1
        $this['date'] = $date;
18 1
        $this['bankgiro'] = $bankgiro;
19 1
        $this['customerNr'] = $customerNr;
20 1
    }
21
}
22