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

OpeningRecord::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

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