HKSYN   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getName() 0 4 1
1
<?php
2
3
namespace Fhp\Segment;
4
5
/**
6
 * Class HKSYN (Synchronisation)
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.8.1.2
11
 *
12
 * @package Fhp\Segment
13
 */
14
class HKSYN extends AbstractSegment
15
{
16
    const NAME = 'HKSYN';
17
    const VERSION = 3;
18
19
    const SYNC_MODE_NEW_CUSTOMER_ID = 0; // Neue Kundensystem-ID zurückmelden
20
    const SYNC_MODE_LAST_MSG_NUMBER = 1; // Letzte verarbeitete Nachrichtennummer zurückmelden
21
    const SYNC_MODE_SIGNATURE_ID = 2; // Signatur-ID zurückmelden
22
23
    /**
24
     * HKSYN constructor.
25
     * @param int $segmentNumber
26
     * @param int $syncMode
27
     */
28
    public function __construct(
29
        $segmentNumber,
30
        $syncMode = self::SYNC_MODE_NEW_CUSTOMER_ID
31
    ) {
32
        parent::__construct(
33
            static::NAME,
34
            $segmentNumber,
35
            static::VERSION,
36
            array($syncMode)
37
        );
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getName()
44
    {
45
        return static::NAME;
46
    }
47
}
48