SecurityContextToken   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
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
use Dgame\Soap\XmlElement;
7
8
/**
9
 * Class SecurityContextToken
10
 * @package Dgame\Soap\Component
11
 */
12
final class SecurityContextToken extends NamedNode
13
{
14
    /**
15
     * SecurityContextToken constructor.
16
     *
17
     * @param string $token
18
     */
19 3
    public function __construct(string $token)
20
    {
21 3
        parent::__construct('wsc');
22
23 3
        $this->setAttribute(new XmlnsAttribute('wsc', 'http://schemas.xmlsoap.org/ws/2005/02/sc'));
24 3
        $this->appendElement(new XmlElement('Identifier', $token));
25
    }
26
}