HKVVB   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 55
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1
ccs 0
cts 14
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 21 1
A getName() 0 4 1
1
<?php
2
3
namespace Fhp\Segment;
4
5
/**
6
 * Class HKVVB (Verarbeitungsvorbereitung)
7
 * Segment type: Administration
8
 *
9
 * @link: http://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Formals_2011-06-14_final_version.pdf
10
 * Section: C.3.1.3
11
 *
12
 * @package Fhp\Segment
13
 */
14
class HKVVB extends AbstractSegment
15
{
16
    const NAME = 'HKVVB';
17
    const VERSION = 3;
18
19
    const DEFAULT_BPD_VERSION = 0;
20
    const DEFAULT_UPD_VERSION = 0;
21
22
    const LANG_DEFAULT = 0;
23
    const LANG_DE = 1;
24
    const LANG_EN = 2;
25
    const LANG_FR = 3;
26
27
    const DEFAULT_PRODUCT_NAME = 'fints-hbci-php';
28
    const DEFAULT_PRODUCT_VERSION = '1.0';
29
30
    /**
31
     * HKVVB constructor.
32
     * @param int $segmentNumber
33
     * @param int $bpdVersion
34
     * @param int $updVersion
35
     * @param int $dialogLanguage
36
     * @param string $productName
37
     * @param string $productVersion
38
     */
39
    public function __construct(
40
        $segmentNumber,
41
        $bpdVersion = self::DEFAULT_BPD_VERSION,
42
        $updVersion = self::DEFAULT_UPD_VERSION,
43
        $dialogLanguage = self::LANG_DEFAULT,
44
        $productName = self::DEFAULT_PRODUCT_NAME,
45
        $productVersion = self::DEFAULT_PRODUCT_VERSION
46
    ) {
47
        parent::__construct(
48
            static::NAME,
49
            $segmentNumber,
50
            static::VERSION,
51
            array(
52
                $bpdVersion,
53
                $updVersion,
54
                $dialogLanguage,
55
                $productName,
56
                $productVersion
57
            )
58
        );
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getName()
65
    {
66
        return static::NAME;
67
    }
68
}
69