Completed
Push — master ( 310596...ecf895 )
by Hannes
02:21
created

OpeningRecord   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 10
ccs 0
cts 7
cp 0
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
11
 */
12
class OpeningRecord extends \ArrayObject implements Record
13
{
14
    public function __construct(string $layout, \DateTimeImmutable $date, Bankgiro $bankgiro, string $customerNr = '')
15
    {
16
        $this['layout'] = $layout;
17
        $this['date'] = $date;
18
        $this['bankgiro'] = $bankgiro;
19
        $this['customerNr'] = $customerNr;
20
    }
21
}
22