SecurityIdentificationDetails::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Fhp\DataElementGroups;
4
5
use Fhp\Deg;
6
7
/**
8
 * Class SecurityIdentificationDetails
9
 * @package Fhp\DataElementGroups
10
 */
11
class SecurityIdentificationDetails extends Deg
12
{
13
    const PARTY_MS = 1;   // sender
14
    const CID_NONE = '';
15
16
    /**
17
     * SecurityIdentificationDetails constructor.
18
     *
19
     * @param string $cid
20
     * @param int $systemId
21
     */
22 5
    public function __construct($cid = self::CID_NONE, $systemId = 0)
23
    {
24 5
        $this->addDataElement(static::PARTY_MS);
25 5
        $this->addDataElement($cid);
26 5
        $this->addDataElement($systemId);
27 5
    }
28
}
29