HKKAZ   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 48
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
ccs 0
cts 15
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 23 1
A getName() 0 4 1
1
<?php
2
3
namespace Fhp\Segment;
4
5
use Fhp\DataTypes\Dat;
6
7
/**
8
 * Class HKKAZ (Kontoumsätze anfordern/Zeitraum)
9
 * Segment type: Geschäftsvorfall
10
 *
11
 * @link: http://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Geschaeftsvorfaelle_2015-08-07_final_version.pdf
12
 * Section: C.2.1.1.1.2
13
 *
14
 * @package Fhp\Segment
15
 */
16
class HKKAZ extends AbstractSegment
17
{
18
    const NAME = 'HKKAZ';
19
    const ALL_ACCOUNTS_N = 'N';
20
    const ALL_ACCOUNTS_Y = 'J';
21
22
    /**
23
     * HKKAZ constructor.
24
     * @param int $version
25
     * @param int $segmentNumber
26
     * @param mixed $ktv
27
     * @param array $allAccounts
28
     * @param \DateTime $from
29
     * @param \DateTime $to
30
     * @param string|null $touchdown
31
     */
32
    public function __construct(
33
        $version,
34
        $segmentNumber,
35
        $ktv,
36
        $allAccounts,
37
        \DateTime $from,
38
        \DateTime $to,
39
        $touchdown = null
40
    ) {
41
        parent::__construct(
42
            static::NAME,
43
            $segmentNumber,
44
            $version,
45
            array(
46
                $ktv,
47
                $allAccounts,
48
                new Dat($from),
49
                new Dat($to),
50
                null,
51
                $touchdown
52
            )
53
        );
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getName()
60
    {
61
        return static::NAME;
62
    }
63
}
64