Completed
Push — master ( 126b63...733cbc )
by Randy
04:39
created

Password   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
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 10
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\XmlAttribute;
6
7
/**
8
 * Class Password
9
 * @package Dgame\Soap\Component
10
 */
11
final class Password extends NamedNode
12
{
13 1
    public function __construct(string $password)
14
    {
15 1
        parent::__construct();
16
17 1
        $this->setAttribute(new XmlAttribute('Type', 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'));
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 140 characters; contains 153 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
18 1
        $this->setValue($password);
19
    }
20
}