BiPROVersion::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Dgame\Soap\Component;
4
5
use Dgame\Soap\Attribute\XmlnsAttribute;
6
7
/**
8
 * Class Version
9
 * @package Dgame\Soap\Component
10
 */
11
final class BiPROVersion extends NamedNode
12
{
13
    /**
14
     * BiPROVersion constructor.
15
     *
16
     * @param string $version
17
     */
18 4
    public function __construct(string $version)
19
    {
20 4
        parent::__construct('allgemein');
21
22 4
        $this->setAttribute(new XmlnsAttribute('allgemein', 'http://www.bipro.net/namespace/allgemein'));
23 4
        $this->setValue($version);
24
    }
25
}