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

OpeningRecord::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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