HKIDN::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Fhp\Segment;
4
5
use Fhp\DataTypes\Kik;
6
7
/**
8
 * Class HKIDN (Identifikation)
9
 * Segment type: Administration
10
 *
11
 * @link: http://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Formals_2011-06-14_final_version.pdf
12
 * Section: C.3.1.2
13
 *
14
 * @package Fhp\Segment
15
 */
16
class HKIDN extends AbstractSegment
17
{
18
    const NAME = 'HKIDN';
19
    const VERSION = 2;
20
    const COUNTRY_CODE = 280; // Germany
21
22
    /**
23
     * HKIDN constructor.
24
     * @param int $segmentNumber
25
     * @param string $bankCode
26
     * @param string $userName
27
     * @param int $systemId
28
     */
29
    public function __construct($segmentNumber, $bankCode, $userName, $systemId = 0)
30
    {
31
        parent::__construct(
32
            static::NAME,
33
            $segmentNumber,
34
            static::VERSION,
35
            array(
36
                new Kik(static::COUNTRY_CODE, $bankCode),
37
                $userName,
38
                $systemId,
39
                1   // Kunden-ID
40
            )
41
        );
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getName()
48
    {
49
        return static::NAME;
50
    }
51
}
52