HKSAL::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 4
crap 1
1
<?php
2
3
namespace Fhp\Segment;
4
5
/**
6
 * Class HKSAL (Saldenabfrage)
7
 * Segment type: Geschäftsvorfall
8
 *
9
 * @link: http://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Geschaeftsvorfaelle_2015-08-07_final_version.pdf
10
 * Section: C.2.1.2
11
 *
12
 * @package Fhp\Segment
13
 */
14
class HKSAL extends AbstractSegment
15
{
16
    const NAME = 'HKSAL';
17
    const VERSION = 7;
18
    const ALL_ACCOUNTS_N = 'N';
19
    const ALL_ACCOUNTS_Y = 'J';
20
21
    /**
22
     * HKSAL constructor.
23
     * @param int $version
24
     * @param int $segmentNumber
25
     * @param mixed $ktv
26
     * @param array $allAccounts
27
     */
28 1
    public function __construct($version, $segmentNumber, $ktv, $allAccounts)
29
    {
30 1
        parent::__construct(
31 1
            static::NAME,
32 1
            $segmentNumber,
33 1
            $version,
34
            array(
35 1
                $ktv,
36 1
                $allAccounts,
37
            )
38 1
        );
39 1
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getName()
45
    {
46
        return static::NAME;
47
    }
48
}
49