BiPROVersion   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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
}